Skip to content

Tashneet-30/Starting-with-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

JAVASCRIPT

  • can change type of data at runtime , dynamically typed language What is Programming: a way to communicate with computer , telling computer what to do

LET'S GET STARTED :

  • ECMA Script : standard of js , to add any feature in js we add in ECMA
  • execute :: in browser
  • at run time : node.js outside the browser
  • inside html document using script tag
  • REPLIT : a platfrom to run js

Variables

  • containers to store different types of data

Rules :

  • variable starts with $, _ , letters
  • case sensitive language
  • let,var,const used to declare variables
  • let a= 67
  • var: pre es6 var intoduces bug in the code
  • const :constants let : block scoped variable
 let a= 67
console.log(a)

PRIMITVE AND NON PRIMITIVE DATA TYPES :

NN BB SS U

let e = null;
let f = 456;
let u = true ;
let g = BigInt("5");
let v = "harry "
let k = Symbol("thi is a symbol")
let y = undefined;
console.log(typeof(g))

null explicitly has nothing in it.

undeefined : kuch ditta hini or (let g ALONE )

OBJECTS: KEY VALUE PAIRS

const items={
  "harry" : true,
  "rohan": false,

}
console.log(items.harry)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published