Dashboard
Repositories
filestore
Aktivität
Suche
Login
public
/
web-development/examples
Web Development Examples
Übersicht
Reflog
Commits
Dateibaum
Dokumentation
Forks
Vergleichen
Blame
|
Historie
|
Raw
add examples for http servers
Sascha Schulz
2024-10-14
2e49cc24be25dfc42166d75061d6050fabbfb325
[public/web-development/examples.git]
/
templates
/
007-js
/
objects.js
1
2
3
4
5
6
7
8
9
10
11
12
13
let o = {};
o.a = 1;
o["a"] = 1; // alternativ
o["$ !"] = 2; // so sind auch komplexe Schlüssel möglich
// o."$ !" = 2; => Syntaxfehler
// o.$ ! = 2; => Syntaxfehler
o[true] = 3;
console.log(Object.keys(o));