Grokking JavaScript Fundamentals
Ask Author
Back to course home

0% completed

Vote For New Content
Quiz
On this page
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