Day 7 - Spicyeyeses/Site_1 GitHub Wiki

Day 7 Process

  • Review the things we learnt from the previous classes
  • Learnt about how to test conditions
x = 5;
if (x > 0) {
    console.log("true");
} else if (x < 0) {
    console.log("false");

Javascript Review

  1. Javascript only works in a browser within the<script> tag.
  2. Javascript is the programming language for the web

Datatypes Review

  • This ia a string x = "Hello World";
  • This is an integer x = 13;
  • This is a float x = π;
  • This is a boolean x = true;
  • This is an array x = ['hellow_world','test','lol']

Important notes

  • Math in javascript follows order of operations BEDMAS : brackets, exponents, division, multiplication, addition, subtraction
  • Common math symbols < less then, > greater then, = assign value, == test equality, != not equal, * multiply, / division
⚠️ **GitHub.com Fallback** ⚠️