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 event handling in web components
Sascha Schulz
2024-03-18
2c684af29f61555fce48e67993a865e4ba091698
[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));