Quick actions

cmd+k|ctrl+k

Navigation

Languages

example 1

Snippet info

Language

JavaScript

Visibility

public

Author

dickson

Created

2026-02-11T02:48:47.78278Z

Updated

2026-02-11T06:27:21.178739Z

person = {name:"John", age:[1,2,[[5,6,7,8]],3,4], func: a, name:"Peter"};
console.log(person.age[2][0][1]);
console.log(person.name);
function a() {
    console.log("Hello World!");
    // return 1;
}
a = 10;
console.log(a);
console.log(person.func());

// b();
// console.log(b);
const b = function () {
    console.log("I am from function b");
};
( function () {
    console.log("I am from TIFE")
} )();

const c = () => {
    console.log("I am from arrow function");
}
c();
const d = x => x**2;
console.log(d(2));
// multi parameters
const e = (x,y) => x+y;
console.log(e(1,2))
const e = (x,y) => {
    console.log(x,y); 
    return x + y;
}
console.log(e(1,2))
INFO