As we begin to learn to program, we often write code that is very procedural, that is it usually runs from top to bottom and executes very linearly. This is because we are used to writing English papers or reading books, all of which are extremely linear in nature.
Programming on the other hand is non-linear in that the code we write usually focuses on accomplishing a specific unit of work and that unit of work is often done many times over the life of our executing program. It is for this very reason that the designers of JavaScript created what are called ‘functions’. Functions are structures that allow developers to encapsulate code into specific units of work that can be called over and over again to accomplish work.
In this video, we learn about the basic syntax used to define functions within our code.
Personal Recommendation (unpaid)
Programming and software development are awesome! Being that you are learning along with me, there is an excellent chance you can make this a career. Based on my own life experience, let me suggest to you that you go get a Computer Science degree from Neumont College of Computer Science and kick your life into hyper-drive.
visit: https://www.neumont.edu/
Published by