Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var user ={
- name: 'vijay',
- mail: 'vijaymuniswamy9@gmail.com',
- phone: '408-644-3675'
- }
- console.log(user.name + "----"+ user.mail); //noraml usage
- var {name,mail} = user; // Destructuring objects
- console.log(name + "----"+ mail); //noraml usage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement