SlideShare a Scribd company logo
2
Most read
6
Most read
Introduction to Web Development
Session 3 - JavaScript
Ashwin Ganti
Core Team Member
Agenda
● Introduction to Javascript
● Variables and Constants
● Primitive Types
● Dynamic Typing and Objects
● Arrays
● Functions
● DOM
Introductionto Javascript
● What is Javascript?
● What can you do with Javascript?
● Where does this Javascript code run?
Variables
let nameClub = "GDSC";
Constants
● Variables declared with const keyword cannot be reassigned
● These Variables are restricted to block scope
● Eg:
const pi = 3.14;
Primitive Types
● String
● Number
● Boolean
● Undefined
● Null
Reference Types
● Objects
● Arrays
● Functions
Objects
● Objects are variables which can take many values in the form of
key-value pairs.
● How to Declare the object:
let details = {
name: "Rob",
age: 20
};
● How to Access the object:
console.log(details.age);
Arrays
● It is a Data Structure with a list of items
● Items can be of different data types
● Dynamic in Nature
Syntax:
const array_name = [item1, item2, ...];
Arrays
● How to Declare the arrays:
let favFood = ['Pizza', 'Pasta', 'Biriyani']
● How to Access Array Elements:
console.log(favFood[0])
Functions
● A Javascript function is a set of instructions performed under one
block
● It is Executed when something is invoked or called.
function square2Nos(number){
return number * number;
}
square2Nos(3)
Syntax:
function function_name(parameter1,
parameter2, parameter3) {
// code to be executed
}
DOM
● Document Object Model is a interface for dynamically accessing content,update the
structure and style of a document.
● It defines the properties of HTML and Methods to access these HTML elements.
● Eg:- Form Validation
Thank You!
Shoot your questions.

More Related Content

What's hot (20)

PPTX
JSON: The Basics
Jeff Fox
 
PDF
Basics of JavaScript
Bala Narayanan
 
PDF
Introduction into ES6 JavaScript.
boyney123
 
PPTX
ReactJS presentation.pptx
DivyanshGupta922023
 
PPTX
Ajax ppt - 32 slides
Smithss25
 
PPTX
Hibernate ppt
Aneega
 
PDF
JavaScript Programming
Sehwan Noh
 
PPTX
Javascript 101
Shlomi Komemi
 
PDF
Javascript Module Patterns
Nicholas Jansma
 
PPTX
Loops PHP 04
mohamedsaad24
 
PDF
An introduction to React.js
Emanuele DelBono
 
PPT
Oops concepts in php
CPD INDIA
 
PPT
PHP Tutorials
Yuriy Krapivko
 
PPTX
What Is Express JS?
Simplilearn
 
PPTX
JavaScript Conditional Statements
Marlon Jamera
 
PDF
Introduction to web programming with JavaScript
T11 Sessions
 
PDF
Introduction To Single Page Application
KMS Technology
 
PPTX
Introduction to es6
NexThoughts Technologies
 
PPTX
Javascript functions
Alaref Abushaala
 
JSON: The Basics
Jeff Fox
 
Basics of JavaScript
Bala Narayanan
 
Introduction into ES6 JavaScript.
boyney123
 
ReactJS presentation.pptx
DivyanshGupta922023
 
Ajax ppt - 32 slides
Smithss25
 
Hibernate ppt
Aneega
 
JavaScript Programming
Sehwan Noh
 
Javascript 101
Shlomi Komemi
 
Javascript Module Patterns
Nicholas Jansma
 
Loops PHP 04
mohamedsaad24
 
An introduction to React.js
Emanuele DelBono
 
Oops concepts in php
CPD INDIA
 
PHP Tutorials
Yuriy Krapivko
 
What Is Express JS?
Simplilearn
 
JavaScript Conditional Statements
Marlon Jamera
 
Introduction to web programming with JavaScript
T11 Sessions
 
Introduction To Single Page Application
KMS Technology
 
Introduction to es6
NexThoughts Technologies
 
Javascript functions
Alaref Abushaala
 

Similar to Introduction to Web Development - JavaScript (20)

PDF
Extending Node.js using C++
Kenneth Geisshirt
 
PDF
JavaScript Getting Started
Hazem Hagrass
 
PPTX
Introduction to JavaScript
SadhanaParameswaran
 
PPTX
Learn TypeScript from scratch
Mohd Manzoor Ahmed
 
PPTX
Learn JavaScript From Scratch
Mohd Manzoor Ahmed
 
PDF
Dotnet content
maheshcs1
 
PDF
Go_ Get iT! .pdf
Gagan Chouhan
 
PPTX
JavaScript Tut (1).pptx
AyushSingh931502
 
PPTX
JavaScript Tut (1).pptx
AyushSingh931502
 
PPTX
JavaScript | Introduction
Velimir Bulatovic
 
PDF
Groovy.pptx
Giancarlo Frison
 
PPTX
Session 09 - OOPS
SiddharthSelenium
 
PDF
9.4json
Andrew Dunstan
 
PDF
Software Developer Training
rungwiroon komalittipong
 
PPTX
Next Generation of Javascript
Squash Apps Pvt Ltd
 
PPTX
04-JS.pptx
RazanMazen4
 
PPTX
04-JS.pptx
RazanMazen4
 
PPTX
04-JS.pptx
RazanMazen4
 
PDF
Action Jackson! Effective JSON processing in Spring Boot Applications
Joris Kuipers
 
PDF
Javascript
20261A05H0SRIKAKULAS
 
Extending Node.js using C++
Kenneth Geisshirt
 
JavaScript Getting Started
Hazem Hagrass
 
Introduction to JavaScript
SadhanaParameswaran
 
Learn TypeScript from scratch
Mohd Manzoor Ahmed
 
Learn JavaScript From Scratch
Mohd Manzoor Ahmed
 
Dotnet content
maheshcs1
 
Go_ Get iT! .pdf
Gagan Chouhan
 
JavaScript Tut (1).pptx
AyushSingh931502
 
JavaScript Tut (1).pptx
AyushSingh931502
 
JavaScript | Introduction
Velimir Bulatovic
 
Groovy.pptx
Giancarlo Frison
 
Session 09 - OOPS
SiddharthSelenium
 
Software Developer Training
rungwiroon komalittipong
 
Next Generation of Javascript
Squash Apps Pvt Ltd
 
04-JS.pptx
RazanMazen4
 
04-JS.pptx
RazanMazen4
 
04-JS.pptx
RazanMazen4
 
Action Jackson! Effective JSON processing in Spring Boot Applications
Joris Kuipers
 
Ad

More from SadhanaParameswaran (20)

PPTX
Introduction to Web Development - CSS
SadhanaParameswaran
 
PPTX
Introduction to Web Development - HTML
SadhanaParameswaran
 
PPTX
Introduction to data science.pptx
SadhanaParameswaran
 
PPTX
Flutter Festivals GDSC ASEB | Introduction to Flutter
SadhanaParameswaran
 
PPTX
Flutter Festivals GDSC ASEB | Introduction to Dart
SadhanaParameswaran
 
PPTX
Explore ML with Crowdsource | Neural Networks - Session 3
SadhanaParameswaran
 
PPTX
Explore ML with Crowdsource | ML Extended - Session 4
SadhanaParameswaran
 
PPTX
Android Study Jams Session 5
SadhanaParameswaran
 
PPTX
Explore ML with Crowdsource | Intro to ML - Session 2
SadhanaParameswaran
 
PPTX
Android Study Jams Session 4
SadhanaParameswaran
 
PPTX
Android Study Jams - Session 3
SadhanaParameswaran
 
PPTX
Android Study Jams - Session 2
SadhanaParameswaran
 
PPTX
Android Study Jams - Session 1
SadhanaParameswaran
 
PPTX
Learn To Code: Next steps for python
SadhanaParameswaran
 
PPTX
Learn To Code: Diving deep into java
SadhanaParameswaran
 
PPTX
Learn To Code: Introduction to java
SadhanaParameswaran
 
PPTX
Learn To Code: Introduction to c
SadhanaParameswaran
 
PPTX
Hacktoberfest 2021
SadhanaParameswaran
 
PPTX
Dominion over domains
SadhanaParameswaran
 
PPTX
30 days of google cloud 2021
SadhanaParameswaran
 
Introduction to Web Development - CSS
SadhanaParameswaran
 
Introduction to Web Development - HTML
SadhanaParameswaran
 
Introduction to data science.pptx
SadhanaParameswaran
 
Flutter Festivals GDSC ASEB | Introduction to Flutter
SadhanaParameswaran
 
Flutter Festivals GDSC ASEB | Introduction to Dart
SadhanaParameswaran
 
Explore ML with Crowdsource | Neural Networks - Session 3
SadhanaParameswaran
 
Explore ML with Crowdsource | ML Extended - Session 4
SadhanaParameswaran
 
Android Study Jams Session 5
SadhanaParameswaran
 
Explore ML with Crowdsource | Intro to ML - Session 2
SadhanaParameswaran
 
Android Study Jams Session 4
SadhanaParameswaran
 
Android Study Jams - Session 3
SadhanaParameswaran
 
Android Study Jams - Session 2
SadhanaParameswaran
 
Android Study Jams - Session 1
SadhanaParameswaran
 
Learn To Code: Next steps for python
SadhanaParameswaran
 
Learn To Code: Diving deep into java
SadhanaParameswaran
 
Learn To Code: Introduction to java
SadhanaParameswaran
 
Learn To Code: Introduction to c
SadhanaParameswaran
 
Hacktoberfest 2021
SadhanaParameswaran
 
Dominion over domains
SadhanaParameswaran
 
30 days of google cloud 2021
SadhanaParameswaran
 
Ad

Recently uploaded (20)

PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
community health nursing question paper 2.pdf
Prince kumar
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 

Introduction to Web Development - JavaScript

  • 1. Introduction to Web Development Session 3 - JavaScript Ashwin Ganti Core Team Member
  • 2. Agenda ● Introduction to Javascript ● Variables and Constants ● Primitive Types ● Dynamic Typing and Objects ● Arrays ● Functions ● DOM
  • 3. Introductionto Javascript ● What is Javascript? ● What can you do with Javascript? ● Where does this Javascript code run?
  • 5. Constants ● Variables declared with const keyword cannot be reassigned ● These Variables are restricted to block scope ● Eg: const pi = 3.14;
  • 6. Primitive Types ● String ● Number ● Boolean ● Undefined ● Null
  • 7. Reference Types ● Objects ● Arrays ● Functions
  • 8. Objects ● Objects are variables which can take many values in the form of key-value pairs. ● How to Declare the object: let details = { name: "Rob", age: 20 }; ● How to Access the object: console.log(details.age);
  • 9. Arrays ● It is a Data Structure with a list of items ● Items can be of different data types ● Dynamic in Nature Syntax: const array_name = [item1, item2, ...];
  • 10. Arrays ● How to Declare the arrays: let favFood = ['Pizza', 'Pasta', 'Biriyani'] ● How to Access Array Elements: console.log(favFood[0])
  • 11. Functions ● A Javascript function is a set of instructions performed under one block ● It is Executed when something is invoked or called. function square2Nos(number){ return number * number; } square2Nos(3) Syntax: function function_name(parameter1, parameter2, parameter3) { // code to be executed }
  • 12. DOM ● Document Object Model is a interface for dynamically accessing content,update the structure and style of a document. ● It defines the properties of HTML and Methods to access these HTML elements. ● Eg:- Form Validation
  • 13. Thank You! Shoot your questions.