function name(parameter1, parameter2, parameter3) { //code }
return
statement is reached+
, *
, -
,/
,**
,%
(remainder),++
(increment),--
(decrement)=
,``+= (x +=y same as x=x+y0),
-=`, etc.+
and +=
operator can be used to concatnate strings==
,===
(equal value and type),!=
not equal, !==
not euql value OR not equal type; ?
ternary operator&
logical and, ||
logical or, !
logical nottypeof
, instanceof
(returns true if an object is an instance of an object type)&
= AND, |
= OR, ~
= NOT, ^
XOR (5^1 same as 0101^0001 resulting in 0100 with Decimal 4), <<
left shift, >>
right shift, >>>>
unsinged right shiftcondition ? val1 : val2
; where if condition is true, the operator has the value of val1, otherwise it has a value of val2in
returns true if the specified prperty is in the specified object; instanceof
returns true if the specified object is of the specified object typedelete
deletes an object’s property or array elements; typeof
returns a string indicating the type of the unevaluated operand; void
specifies an expression t be evaluated without returning a value (Paranthese surrounding the expression is optional)How to incorporate my JavaScript with HTML and CSS?