In the next lesson, you'll see an important guide video on how to approach these exercise/solution sets.
Remember, "algoirthm" is just another way of saying "a sequence of steps to accomplish a task" - i.e. a process. The vast majority of web applications are essentially functions working together. "Algorithm" is just another word for "function". And, in JavaScript, a function is essentially a block of code that can have an input and output. You should have a basic grasp of JavaScript functions as well as the fundamentals like strings, numbers, arrays, loops, conditionals, etc. before doing these exercises.
There are a few key characteristics to help you think about algorithms in JavaScript:
function
definition. The functions/algorithms can then be reused anytime simply by referring to the name and adding ()
next to it.Here's a visualization of how an algorithm looks, conceptually. Notice it has an input and an ouput, with a sequence of steps in between:
◎ = Not Started
◉ = Started
✓ = Completed