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 worker threads examples
Sascha Schulz
2024-12-09
3d7f8b0ca07d0abaeda2130be0b7ef23b9b0f49e
[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));