// person = {name:"john",age:[1,2,[[5,6,7,8]],3,4],func:()=>console.log("function inside object"),};
// a();
// function a() {
// console.log("hello");
// return 1;
// }
// a=10;
person = {name:"john",age:[1,2,[[5,6,7,8]],3,4],func:()=>console.log("function inside object"),};
person.func();
b=person.func;
b();
student = {name:"peter",funct:undefined};
student.funct=person.func;
student.funct();
// const b = function() {
// console.log("I am from function b");
// }
// b();
// console.log(b);
// //b=10;
// (function() {
// console.log("I am from IIFE");
// })();
// const c = ()=> {
// console.log("I am from arrow function");
// }
// c();
// const d=x=>x**2;
// console.log(d(2));
// //multiple parameters
// const e = (x,y)=>{console.log(x,y);return x+y};
// console.log(e(1,2));