♠ Posted by Unknown in javascript at 3:37 AM
#1let name = "Name 1";
if(true){
let name = "Name 2"
console.log(name)
}
console.log(name);
>>
"Name 2"
"Name 1"
#2
const AGES = [1,2,3,4];
console.log(AGES);
AGES.push(55);
console.log(AGES);
AGES.push(66,77);
console.log(AGES);
>>
[1, 2, 3, 4]
[1, 2, 3, 4, 55]
[1, 2, 3, 4, 55, 66, 77]
0 komentar:
Post a Comment