scrimba
Intro to JavaScript
Challenge: Functions
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge: Functions
AboutCommentsNotes
Challenge: Functions
Expand for more info
index.js
run
preview
console
// **** Challenge - Functions Part 2 ****

// 1. Write a function that returns the sum of any two numbers you give it.

// 2. Write a function that takes a string such has "Joe" as an argument, and returns the string "Hello Joe"

// 3. Write a function that takes in a number as an argument, and returns the string "Even" if the number is even, and "Odd" if the number is odd.

Console
/index.html
-6:25