Back to course home
0% completed
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!
Table of Contents
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible