JavaScript: Compute the sum of the two given integers Get link Facebook X Pinterest Email Other Apps February 09, 2024 let x = 5;let y = 6;function sun(x,y) { if (x == y) { return 3 * (x + y); } else { return x + y; }}console.log(sun(5, 12));console.log(sun(5, 6)); Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment