//Functions let name='Akshat'; // function greet(name,thanks = 'Thank You'){ // let msg=`Happy birthday! ${name} I hope all your birthday wishes and dreams come true. ${thanks}.`; // return msg; // } // let val; // console.log(greet(name,val)); // let myObj={ // name: 'vibhor', // game: function(){ // return "GTA V"; // } // } // console.log(myObj.game()); // let and const has block level s cope // var has global level scope