Challenge set
JavaScript Functions
Practice JavaScript functions through six hands-on Challenges covering parameters, return values, calculations, collection inputs, and reusable logic.
Work through the collection
Challenges in This Set
- 01
JavaScript
Personal Greeting
Write a JavaScript function that accepts a name, returns a personalized greeting, and prints the result from a call with the provided value.
50XPBeginner - 02
JavaScript
Tip Calculator
Build a JavaScript tip calculator function that accepts a bill total and percentage, returns the tip amount, and prints the calculated result.
50XPBeginner - 03
JavaScript
Ticket Price
Use a JavaScript function with parameters and conditional returns to calculate the correct ticket price from age and membership status.
50XPBeginner - 04
JavaScript
Available Seats
Write a JavaScript function that accepts an array of seat states, loops through it, and returns the number of seats still available.
50XPBeginner - 05
JavaScript
Highest Score
Build a JavaScript function that loops through a score array and returns the highest value without sorting or using higher order methods.
50XPBeginner - 06
JavaScript
Order Total
Combine functions, arrays, loops, and conditionals in JavaScript to total an order, apply a qualifying discount, and return the final price.
50XPBeginner

