Quick actions

cmd+k|ctrl+k

Navigation

Languages

array

Snippet info

Language

JavaScript

Visibility

public

Author

andycheung.cs3

Created

2026-02-11T01:43:14.424426Z

Updated

2026-02-11T04:57:12.051433Z

// 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));
INFO