0% found this document useful (0 votes)
37 views

JS1 ClassNotes

The document introduces JavaScript as a

Uploaded by

stem.amayara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

JS1 ClassNotes

The document introduces JavaScript as a

Uploaded by

stem.amayara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

What is JavaScript?

JS is a programming language. We use It to give Instructions to the


computer.

Input Compute Output


(code) r
Setting up VS
Code
It is a free & popular code editor by
Microsoft.
Our 1st JS
Code
Console.log is used to log (print) a message to the
console

console.log(“Gurusthalam”);
Variables in
JS
Variables are containers for
data

Radius

14

memory
Variable Rules
Variable names are case sensitive; “a” & “A” is different.

Only letters, digits, underscore( _ ) and $ is allowed. (not even

space) Only a letter, underscore( _ ) or $ should be 1st

character.

Reserved words cannot be variable names.


let, const & var

var : Variable can be re-declared & updated. A global scope variable.

let : Variable cannot be re-declared but can be updated. A block scope Variable.

const : Variable cannot be re-declared or updated. A block scope Variable.


Data Types in JS
Primitive Types : Number, String, Boolean, Undefined, Null,
BigInt, Symbol
String

Number

Follow

Boolean
Let‘s Practice
Qs1. Create a const object called “product” to store Information shown in the
picture.
Let‘s Practice

Qs2. Create a const object called “profile” to store Information shown in the
picture.

You might also like