scrimba
Frontend Career Path
Essential JavaScript concepts
JS Mini Projects
Beyond Function Declarations 3: Arrow 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

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
Beyond Function Declarations 3: Arrow Functions
AboutCommentsNotes
Beyond Function Declarations 3: Arrow Functions
Expand for more info
index.js
run
preview
console
const getSpendAlert = function(amount){
return `Warning! You just spent £${amount}!`
}

console.log(getSpendAlert(150))
Console
/index.html
-5:44