var a = "pdc";
var b = a;
var a ="slr";
console.log("a, b", a, b);
//--> a, b slr pdc
var aa = new String("kadoch");
var bb= aa;
aa = String("grand tsadik");
console.log("aa", aa);
//-->aa grand tsadik
console.log("bb", bb);
//-->bb { '0': 'k', '1': 'a', '2': 'd', '3': 'o', '4': 'c', '5': 'h' }
var al = new Object({grand: "tsadik"});
var bl = al;
console.log("al, bl", al, bl);
//-->al, bl { grand: 'tsadik' } { grand: 'tsadik' }
al.grand = "anav";
console.log("al, bl", al, bl);
//-->al, bl { grand: 'anav' } { grand: 'anav' }
retient caracteres, egalite obsolete a = b, retient adresse, egalite eternelle al = bl
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.