Académique Documents
Professionnel Documents
Culture Documents
Christophe Gonzales
HTML et javascript
I Principe de fonctionnement :
Types primitifs :
x 3
let x = 3;
let y = x; y 3
Types référence :
I Object
I Array
I Function
x ···
let x = ...;
let y = x; y
I Par assignation
I Par factory
I Par constructeur
I Par classe
1 function MonObjet () {
2 this.champ1 = 3;
3 }
4
I Implications :
[image wikipedia]
Pour Javascript :
I document = window.document
=⇒ document est une propriété de window