Code Academy JavaScript Tutorials
Just like the other programming languages learned through CodeCademy, we were given step by step instructions that got our feet wet for JavaScript. We learned basic syntax of JavaScript and were given hands on exercises to get us familiar with the language. We started off knowing how to print words on a page then we on to learning mathematical operations, arrays, functions, variables, and for loops. Check out the pictures below to see some examples!
1. The first picture shows one of the few of many functions JavaScript offers. Here we created a variable and made a function called takeOrder, getSubtotal, getTax, and getTotal, that carrys instructions so that we can always use these functions instead of having to rewrite functions with the same purpose over and over again

Second picture shows how to make array in JavaScript. Here we made an array list called bucketList that contains items of what I have as my bucket list. This particular code examples shows the list itself and an example of being able to add more items to the array list on line 3. It then prints the array list with the new items. /p>
Third picture is an exercise of for while-loops. While-loops are a powerful tool to use in situations where we need to execute a certain instruction many times. In this case the while-loop is for an array that contains card suits. The while-loop is used to go through every item on the list and using the mathematical function Math.floor and Math.random, it selects a random item from the list and prints it out.

This picture shows that I completed the JavaScript Course!


