Skip to content

Instantly share code, notes, and snippets.

@CodHeK
Created August 16, 2018 10:47
Show Gist options
  • Save CodHeK/0e6646c0373efd0054a876cb185c518d to your computer and use it in GitHub Desktop.
Save CodHeK/0e6646c0373efd0054a876cb185c518d to your computer and use it in GitHub Desktop.
const
const nums = [10, 20, 30]
nums.push(40)
console.log(nums) //prints [10, 20, 30, 40]
const obj = {
age: 27,
}
obj.age = 30
console.log(obj.age) //prints 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment