Showing posts with label comments. Show all posts
Showing posts with label comments. Show all posts

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



6/21/22

List

 HTML has two main list types which we would cover in this section.

Heading, Paragraphs and Comments

 Headings

HTML has 6 main categories of heading tags which varies in sizes which decreases as the number gets higher.

Blog Archive