Day 7 - Spicyeyeses/Site_1 GitHub Wiki
- 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 only works in a browser within the
<script>
tag. - Javascript is the programming language for the web
- 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']
- 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