DECLARES A VARIABLE THAT CAN BE REASSIGNED A NEW VALUE LATER.
let
USED FOR SUBTRACTION
-
(minus sign)
REPRESENTS NUMERIC VALUES EITHER AS INTEGERS OR FLOATING-POINT (DECIMALS)
number
SHORT FOR CASCADING STYLE SHEETS, THIS TYPE OF FILE EFFECTS HOW THE PAGE LOOKS
CSS
const a = 7; const b = 10; if (a != 77) { console.log("FIRST CASE") }
FIRST CASE
DECLARES A VARIABLE THAT CANNOT BE REASSIGNED A NEW VALUE ONCE IT HAS BEEN ASSIGNED.
const
USED FOR MULTIPLICATION
*
(start, asterisk)
REPRESENTS EITHER "TRUE" OR "FALSE"
boolean
SHORT FOR HYPERTEXT MARKUP LANGUAGE, THIS IS THE STANDARD MARKUP LANGUAGE FOR DOCUMENTS TO BE DISPLAYED IN THE WEB BROWSER.
HTML
const a = 7; const b = 10; if (a == 7) { console.log("FIRST CASE") } if (b == 10) { console.log("SECOND CASE") }
FIRST CASE
SECOND CASE
WHEN A FUNCTION ENCOUNTERS THIS KEYWORD, IT IMMEDIATELY EXISTS THE FUNCTION AND GIVES YOU THE VALUE SPECIFIED AFTER THIS KEYWORD.
return
CHECKS IF TWO VALUES ARE STRONGLY EQUAL
===
(TRIPPLE EQUALS)
REPRESENTS A SEQUENCE OF CHARACTERS AND CAN BE DEFINED USING SINGLE QUOTES, DOUBLE QUOTES, OR BACKTICKS
string
THIS HTML ATTRIBUTE SPECIFIES THE JAVASCRIPT CODE OR ACTION TO BE EXECUTED WHEN THE BUTTON IS CLICKED.
onclick
const a = 7; const b = 10; if (a == 7) { console.log("FIRST CASE") } else if (b == 10) { console.log("SECOND CASE") }
FIRST CASE
THIS TWO LETTER KEYWORD IS USED AT THE START OF A CONDITIONAL STATEMENT. WHEN TRUE IT EXECUTES THE BLOCK OF CODE
if
ASSIGNS A VALUE TO A VARIABLE
= (single equals)
THIS 9 LETTER WORD IS A SPECIAL VALUE THAT INDICATES THE ABSENCE OF AN ASSIGNED VALUE OR AN UNINITIALIZED VARIABLE.
undefined
THE APPSTORE FOR JAVASCRIPT PROGRAMS, USES NODE TO DOWNLOAD JAVASCRIPT LIBRARIES. CAN BE ABBREVIATED TO 3 LETTERS
NODE PACKAGE MANAGER (NPM)
const a = 7; const b = 10; if (a >= 7) { console.log("FIRST CASE") } if (a <= 7) { console.log("SECOND CASE") }
FIRST CASE
SECOND CASE
USED TO DEFINE REUSABLE BLOCKS OF CODE THAT CAN BE EXECUTED BY INVOKING (CALLING) ITS NAME FOLLOWED BY PARENTHESIS
function
USED TO RETURN THE OPPOSITE BOOLEAN VALUE
! (not operator)
THIS 3 LETTER WORD REPRESENTS THE INTENTIONAL ABSENCE OF A VALUE
null
POPULAR CODE EDITOR FROM MICROSOFT FOR WRITING AND EDITING CODE LIKE HTML, CSS, OR JS. IT EVEN ALLOWS YOU TO CHANGE THE THEME.
Visual Studio Code
const a = 7; const b = 10; if (a == 7) { console.log("FIRST CASE") } if ( a < b ) { console.log("SECOND CASE") } else if (b == 10) { console.log("THIRD CASE") }
FIRST CASE
SECOND CASE