Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
let test = { 'thename': function factorial(n) { console.log(n) if (n <= 1) { return 1; } return n * factorial(n - 1); } }; test.thename(5); /* run: 5 4 3 2 1 */
let test = { 'thename': function f() { console.log("f") } }; test.thename(); /* run: "f" */