Copying the same few lines into every place that needs them works until a rule changes, and then every copy has to be fixed. In this course, you’ll write small JavaScript functions that take values in and hand an answer back, so each rule lives in one place that you can call whenever you need it.
You’ll practice in RealJS exercises with automated tests that check your functions on many inputs, and you’ll run small scripts of your own with Node in the VS Code terminal. You’ll learn how to:
- Write functions with parameters and call them with different arguments
- Hand answers back with
returnand use them in calculations and conditions - Predict where a name is visible, and place each variable where the lines that need it can see it
- Plan a task as a few small functions and check each one on its own
In the project, you’ll build an arcade score toolkit from three functions that work out a round’s score, pick a rank, and make a message for each player. Then you’ll explain it to the mentor and change a scoring rule without touching the message code.
What’s Included:
- 16 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 2 Downloadable Resources
- Interactive Quiz to Check Your Progress
- 5 Hands-On Coding Exercises
- Q&A With JavaScript Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths: