+25 XP
Lesson 47

Built-in Functions

Useful JavaScript helpers!

JavaScript's Built-in Functions

JavaScript comes with many helpful functions already made for you!

You've already used some:

console.log()

Print to console

alert()

Show popup

prompt()

Get user input

Math.random()

Random number

Why are they useful?

They save you time - you don't have to write them yourself!