Modular Code

As we start add more code, you maybe notice your code start to get messy and become harder to read. So in all language, when we have large amount of code, we break them apart into smaller, reusable, modular pieces. With Javascript, we call this function. A function is simply the idea of taking amount of code, wrapping it up, and giving it a name, so you can call it later.

We already learned this things in previous course, but we will cover some of them as reminder.

results matching ""

    No results matching ""