Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
function f(x = 3, y = 8) { console.log(x + ' ' + y); } f(); f(1); f(87, 99); /* run: 3 8 1 8 87 99 */
function f(x = 3, y = x) { console.log(x + ' ' + y); } f(); f(1); f(87, 99); /* run: 3 3 1 1 87 99 */