Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const MY_CONSTANT = {myProperty: 6};
- console.log(MY_CONSTANT.myProperty);
- // 6
- MY_CONSTANT.myProperty = 18;
- console.log(MY_CONSTANT.myProperty);
- // 18
- const OTHER_CONSTANT = [12, 14, 16];
- console.log(OTHER_CONSTANT[0]);
- // 12
- OTHER_CONSTANT[0] = 22;
- console.log(OTHER_CONSTANT[0]);
- // 22
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement