Back to course home
0% completed
Vote For New Content
Quiz
How do you define a function in JavaScript that calculates the sum of two numbers?
Choose all correct options
function sum(a + b) { return a + b; }
function sum(a, b) { return a + b; }
sum(a, b) => return a + b;
let sum = function(a, b) { return a + b; };
.....
.....
.....
Like the course? Get enrolled and start learning!
On this page