What you will use in this project
- let and const
- Conditionals and loops
- String and number methods
- Writing pure return-value functions
Complete each step in the editor and watch the result as your page takes shape.
Build a starter library of pure JS helpers.
Each helper will run in the browser.
Easy · +90 XP · JavaScript
Check code when you’re ready. We grade your work against the step’s rubric and tell you exactly what passed and what still needs work.
This project is broken into 6 steps. Each one has its own pass criterion. Click Check code on every step to verify your progress and earn the full +90 XP.
| # | Step & pass criterion | Weight |
|---|---|---|
| 1 | Sum two numbers addNumbers(a, b) returns the sum | 15 pts |
| 2 | Capitalize the first letter capitalize(s) upper-cases the first letter | 15 pts |
| 3 | Reverse a string reverseString(s) reverses via a for loop | 15 pts |
| 4 | Check for a palindrome isPalindrome(s) compares lowercase to its reverse | 15 pts |
| 5 | Count the vowels countVowels(s) counts vowels with a loop | 20 pts |
| 6 | Render results init() writes each result into the page | 20 pts |
Sign in to your W3Schools account to unlock this project, earn XP, and track your progress.
Sign in Create accountNew
Coding fundamentals as a game. Bite-sized lessons and challenges.
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com