rezamalik15

var let const

May 24th, 2023
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var name1 = "Budi";
  2. name1 = "Budiman";
  3. var name1 = "Budi dan Budiman";
  4.  
  5. let name2 = "Ahmad";
  6. name2 = "Roni";
  7. // let name2 = "Rohmat"; ini akan error
  8.  
  9. const pi = 3.14;
  10. // pi = 3.145; ini akan error
  11. // const pi = 3.14; ini akan error
Advertisement
Add Comment
Please, Sign In to add comment