1. write name : “ridha” or “danjanny”
2. finding the length (how long my name?)
3. basic math
4. error : doesn’t compute!
computer only speak certain language.
5. // is a comment and is ignored by the computer
what am i learning ?
- create web interactive
Data types I & II : Number & Strings
a. numbers are quantities
cheat sheet :
string => “string of text”.length
console.log (printing out)
will take whatever is inside the parentheses and log it to the console below your code.
list of comparison operators :
<= less than or equal to
>=greater than or equal to
=== equal to
!== not equal to
comparison plus booleans to decide whether a block of code should run.
if (true conditions)
console.log(“you are good at math!”);
Robot two options :
if(condition is true)
// do this code
else // “otherwise”