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 index.html template for viewport example
Sascha Schulz
2023-08-30
e3cc1968371467dfa5d61795bfe84eeaff0bc1e4
[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));