On Github edgenard / ScriptEd_lesson_slides
A tech company in NYC getting experience doing real work.
Getting paid.
Know enough that you can contribute meaningfully to the company
Be able work on your own
Be able to work on a team
Finish eating by 4:20
No cellphone use while in class. If this is a problem we will offer to hold it for you till the end of class.
Listening to music is only OK if you are
var number = 1;
number = 1;
number 1;
var 3six;
var six3;
var *3six;
var $3six;
var _3six;
$
_
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
var six3 = 63;
break
default
function
return
var
case
delete
if
switch
void
catch
do
in
this
while
const
else
instanceof
throw
with
continue
finally
let
try
debugger
for
new
typeof
function nameOfFunction
function add3(arg)
function add3(num){ return num + 3; }
Write a function that takes in a number and prints out the number multiplied by 5
Write a function that takes in a string and prints out string with with "Hello, " in front of it.
Write a function that takes in 2 numbers where the first number is the base and the second number is the exponent. Print out the value of raising the base by the exponent.
Write a function that take in 2 numbers, divides the first number by the second number and prints out the answer rounded to the nearest integer.
Write a function that calculates the days left until Christmas. HINT: Look up Dates in JavaScript
Sometimes you only want the computer to do something if something else is true.
if(5 > 4){ console.log("Yes"); } else { console.log("NO"); }
if(10 > 11){ console.log("10 is greater than 11"); }else{ console.log("10 is not greater than 11") }
>means greater than
<means less than
===means equal to
So Does
==But always use three equal signs
!==means not equal to
Putting a
!in front of any means its opposite
&&means AND
||means OR
if(!(5 > 4)){ console.log("Yes"); }else { console.log("NO"); }
if( 5 > 4 && 6 > 5){ console.log("Both are true"); }else{ console.log("Both were not true"); }
if(5 > 4 || 3 > 4){ console.log("At least one was true"); }else{ console.log("None were true"); }
if( 5 !== 4){ console.log("That's right 5 is not equal to 4") }else { console.loge("5 is equal to 4") }