commit b5dfdc4cdd2d459154c7aeae390976ef8736b6dd Author: schrom01 Date: Thu Oct 20 09:00:51 2022 +0200 initial commit diff --git a/praktikum.pdf b/praktikum.pdf new file mode 100644 index 0000000..c71af28 Binary files /dev/null and b/praktikum.pdf differ diff --git a/repl.txt b/repl.txt new file mode 100644 index 0000000..812e194 --- /dev/null +++ b/repl.txt @@ -0,0 +1,20 @@ +let F = function (n) { this.a = n } +let f = function () { return this.a } +let fs = function () { "use strict"; return this.a } +let value = new F(12) +value.a +f() +fs() +fs.call({ a: 11, b: 22 }) +F(99) +a +let obj = Object.create({ f }) +obj +obj.a = "yeah" +obj +obj.f() + +Object.getOwnPropertyNames(obj) +Object.getOwnPropertyNames(Object.getPrototypeOf(obj)) + +