scrimba
JS Deep Dive
Functions
Challenge: Your First Function
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: Your First Function
AboutCommentsNotes
Challenge: Your First Function
Expand for more info
index.js
run
preview
console
// Challenge: Write a function splitBill() that lets you know how much 
// you need to pay to split any bill between you and your friends.
// It should return a message with a number.

// Write your code below:




// Testing your solution
console.log(splitBill(10, 2))
console.log(splitBill(16, 4))
console.log(splitBill(350, 9))
Console
3
null
,
/index.html
-2:06