Bootcamp Notes – Day 5 (Fri) – Review Material
Day 5 (Friday) – Review Material
So far NuCamp has been pretty good so far. This first week has been mostly review for me with new stuff. Next week CSS will be the new stuff for me. Each day will build on itself. I am so blessed with not having to work while doing this bootcamp. So I can put in twice the recommend hours a day. NuCamp wants 2 to 3 hours per day, but my very good friend who is web developer and my mentor is recommending me to do 6 or more hours a day, with Sundays being my off day. I do this blog for my notes and to keep my friend updated. I feel passing this Web Fundamentals class will be fine. The FULL Stack will be the hard stuff and it will be a long 22 weeks! When I am caught up with class assignments I find Youtube videos to learn new stuff and to help me in learn things I am weak in understanding. Taking some time now on learning JavaScript with this 12 min video on basics.
Arrays hold many values in a single variable. Example of an array.
let output = Math.floor(Math.random() * 4); //random number of 1 to 4
let cars = [“Saab” , “Honda” , “BMW” , “GM”]
document.write(cars[output]); //outputs 1 of the 4 car makes in array list
Function examples:
If.. else examples:
<script>
let a = 70;
if (a == 70) {
document.write(“You are 70!”);
} else {
document.write(“You are not 70!”);
}
</script>
————————————————————————————-
<script>
let a1 = “joker”;
if (a1 == “Jake”) {
document.write(“You are Jake!”);
} else {
document.write(“You are not who you say you are!”);
}
</script>
For Loop example:
<br>
<br>
<script>
for (i=0;i<6;i++) {
document.write(“This is iteration “ + i + “<br>”);
}
</script>