11/25/22

Introduction to JavaScript


METHODS OF RUNNING JAVASCRIPT
  • Using consoles on webpages
  • using node.js
VARIABLES AND CONSTANTS

There are two methods of getting variables, both of which have similar syntax.
the two methods are:
  • let
  • var (an older version)


 In order to declare constants(i.e., variables which cannot be changed), you make use of the 'const' function.

CONSOLE.LOG
'console.log()' is used to display(print) information onto the user interface.

DATA TYPES
A list of all the data types in JavaScript are:
  • strings
  • number(integers and floats)
  • big int: larger numbers
  • Boolean: true or false
  • undefined: a variable with unassigned data
  • null: an empty variable, not the same as undefined
  • symbol
  • object: a collection of information similar to dictionaries or sets.
JAVASCRIPT OPERATORS

  • ASSIGNMENT OPERATORS


  • ARITHMETIC OPERATORS


  • COMPARISON OPERATORS


  • LOGICAL OPERATORS


  • BITWISE OPERATORS
JAVASCRIPT COMMENTS
There are two main types of comments in JavaScript



Blog Archive