Belajardengan.com merupakan domain blog lama dari delajardengan.blogspot.com. Mohon kritik dan sarannya untuk perkembangan blog ini.
email: blog.tkx.pnp@gmail.com

Belajar Basic Javascript

♠ Posted by Unknown in
#1
let 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]