Js Flashcards
How can we deleet everything in chrome Console ?
type: clear
or
ctrl + k
How to get to console directly ?
command + option + j
or
got to view => developer=> javascript console
+
addition
-
subtraction
*
Multiplication
/
Division
%
Modulo
what is prder operations ?
PEMDAS
what is PEMDAS
parantheses, exponents, Multiplication, division, addition, substraction
how can i recall previous run lines ?
with up/down arrow
how tp make a comment in Js ?
with //
modulo known also as ?
remeinder operator
how to to pronaunce modulo ?
madulo
what means 9%2
it means two goes into nine how many time as a whole number, and how much will be remain ?
9%2 = 1
modulo ist commen to use where ?
to determine if a number is even or odd
how to write 2²?
2**2
what Nan stand for ?
not a number
NaN consider as what is js ?
consider as a number
0/0 =
NaN
how to check js consider an ellement as what ?
with command typeof
ex: typeof 4 = number
what is variable ?
it is the way of giving some name to a value and sorting it using js.
how we make a variable ?
let year =. 1985;
how to update the value of a variable ?
imagine we have let numApple = 4;
- write it again : numApple = 5;
or
-numApple = numApple + 1
or
-numApple +=5
-numApple -=5
- if i had totalFruits= numApple + num Orange in previouse liene and than I updated numApple, how can i update totalFruits value ?
just write totalFruits= numApple + num Orange again