Mod 4 Codecademy JavaScript

Module 4 Overview



Module 4 continued our study of internet application development by learning JavaScript. JavaScript differs from PHP in that it is a client-side programming language for HTML and the web. JavaScript is important, because the majority of websites use it to create different functional aspects, and the majority of modern web browsers are compatible with JavaScript to employ plugins.

For this module, I found learning with Codecademy to be a bit better than using W3Schools, because I had never coded with JavaScript before. The step-by-step slower approach of Codecademy was thus more suitable for me. I would have liked to try other forms of tutorials to create more complicated web applications with JavaScripts, however this was not possible due to time constraints.

For this assignment, I finished the first 3 sections of the Codecademy JavaScript tutorial covering basic syntax, control flow, and JavaScript functions. I have included pictures containing proof of their completion, as well as a short explanation of what I learned and did below.

Codecademy JavaScript


For this assignment, I took the Codecademy JavaScript tutorial, which provided interactive lessons and an environment to code and receive immediate feedback. After learning the basic syntax and control flows of JavaScript, I used that knowledge to create functions that create different outputs based on the different input parameters. Below is an example of a takeOrder function that I created in Codecademy. The function takes the topping of the pizza order as a parameter, and then outputs to console what kind of pizza was ordered:
.