SlideShare a Scribd company logo
Programming Class
JavaScript
How to Learn Effectively
• Short Note
• Revise
• Second Brain
Why Choose This Course (JavaScript)
• Versatility
• Browser Compatibility
• Large Community and Resources
• Immediate Feedback
• Full-Stack Development
• Demand in the Job Market
• Fundamental Concepts
JavaScript Intro
History of JavaScript: From Humble Beginnings to Web
Domination
• Birth of JavaScript (1995):
• Created by Brendan Eich in just 10 days for Netscape Navigator.
• Initially called "LiveScript", then renamed to "JavaScript" for
marketing reasons.
• Introduced interactivity to static web pages, revolutionizing web
development.
JavaScript History
Early Years and Browser Wars (1995-2000):
• Microsoft adopted JavaScript for Internet Explorer, sparking a fierce rivalry with
Netscape.
• Focused on basic features and browser compatibility, leading to fragmented
implementations.
• Despite lack of standardization, JavaScript gained popularity due to its ease of
use.
Standardization and Maturity (2000-2015):
• ECMAScript standard emerged to standardize the language and guide its
evolution.
• Newer versions introduced significant features like object-oriented programming
and functions.
• Libraries and frameworks like jQuery emerged, simplifying web development with
JavaScript.
JavaScript History
Reaching New Heights (2015-present):
• Introduction of ES6 brought major additions like arrow functions and modules.
• Node.js revolutionized server-side development, expanding JavaScript beyond
browsers.
• Frameworks like React and Angular gained popularity, enabling sophisticated web
apps.
JavaScript Today:
• The dominant language for web development, powering interactive experiences for
billions.
• Supported by all major browsers, with a vibrant community driving its continuous
evolution.
• Widely adopted for various applications beyond web, like mobile and desktop
development.
IDE (Integrated Environment Tool)
• VS Code
• ATOM
• Sublime Text
• Notepad
• Web Strome
• PHP Strome
Set up IDE
• VS Code
Server Install
• Xampp
• Wamp Server
• Lamp
Connected with AI
• Create account in OPENAI and Google Birds
Setup some account & software
• GitHub
• Notion
• Stack overflow
Server related issue fixup
• Xampp (Apache and mysql)
Node
• Install Node
Start JavaScript
• Simple hello world in console log
JavaScript Syntax
• A letter (A-Z or a-z)
• A dollar sign ($)
• Or an underscore (_)
• JS is case sensitive
JavaScript Syntax
• JS reversed words
• Link: https://www.w3schools.com/js/js_reserved.asp
JavaScript Syntax
Hyphens:
• first-name, last-name, master-card, inter-city.
Underscore:
• first_name, last_name, master_card, inter_city.
Upper Camel Case (Pascal Case):
• FirstName, LastName, MasterCard, InterCity.
Lower Camel Case:
• firstName, lastName, masterCard, interCity.
JS Comment
• Single line
//this is a single line comment
• Multi line Comment
/*
this is multiple line comment
For test basis
*/
JS Variable
• var
• let
• const
JS Operator
• Arithmetic Operators
• Assignment Operators
• Comparison Operators
• String Operators
• Logical Operators
• Bitwise Operators
• Ternary Operators
Arithmetic Operation
+ Addition
- Subtraction
* Multiplication
** Exponentiation
/ Division
% Modulus (Remainder)
++ Increment
-- Decrement
Assignment Operators
= x = y x = y
+= x += y x = x + y
-= x -= y x = x - y
*= x *= y x = x * y
/= x /= y x = x / y
%= x %= y x = x % y
**= x **= y x = x ** y
Comparison Operators
== equal to
=== equal value and equal type
!= not equal
!== not equal value or not equal type
> greater than
< less than
>= greater than or equal to
<= less than or equal to
String Operators
let str1 = “Hriday";
let str2 = “Ahmed";
let result = (str1 + str2);
console.log(result);
Logical Operators
&& and (x < 10 && y > 1) is true
|| or (x == 5 || y == 5) is false
! not !(x == y) is true
Conditional (Ternary) Operator
let voteable = (age < 18) ? "Too young": "Old
enough";
Bitwise Operators
& AND Sets each bit to 1 if both bits are 1
| OR Sets each bit to 1 if one of two bits is 1
^ XOR Sets each bit to 1 if only one of two bits is 1
~ NOT Inverts all the bits
<< Zero fill left shift Shifts left by pushing zeros in from the right and let the leftmost bits fall
off
>> Signed right shift Shifts right by pushing copies of the leftmost bit in from the left, and let
the rightmost bits fall off
>>> Zero fill right shift Shifts right by pushing zeros in from the left, and let the rightmost bits fall
off
JS data types
• 1. String
2. Number
3. Bigint
4. Boolean
5. Undefined
6. Null
7. Object
Learning JavaScript Programming

More Related Content

Similar to Learning JavaScript Programming (20)

PPSX
DIWE - Programming with JavaScript
Rasan Samarasinghe
 
PDF
Download full ebook of (Ebook) learning javascript 3e by kan instant download...
fonseaderit
 
PPTX
FFW Gabrovo PMG - JavaScript 1
Toni Kolev
 
PPTX
Introduction to java script
DivyaKS12
 
PPTX
Java script ppt from students in internet technology
SherinRappai
 
PDF
Introduction to Javascript programming
Fulvio Corno
 
PPT
Introduction to javascript.ppt
BArulmozhi
 
PDF
Intro to javascript (6:19)
Thinkful
 
PPTX
Web designing unit 4
Dr. SURBHI SAROHA
 
PPTX
copa-ii.pptx
ERHariramPrajapat
 
PPTX
MYSQL DATABASE INTRODUCTION TO JAVASCRIPT.pptx
ArjayBalberan1
 
PDF
Javascript tutorial basic for starter
Marcello Harford
 
PDF
JavaScript for beginners
Shahrukh Ali Khan
 
PPTX
Unit 3-Javascript.pptx
AmanJha533833
 
PDF
Intro to javascript (5:2)
Thinkful
 
PDF
full javascript Book by Abhishek singh.pdf
AbhishekSingh961152
 
PPTX
An introduction to javascript
tonyh1
 
PPTX
Class[2][29th may] [javascript]
Saajid Akram
 
PPT
JavaScript - An Introduction
Manvendra Singh
 
PDF
Special Edition Using Javascript Mcfedries
envoridala
 
DIWE - Programming with JavaScript
Rasan Samarasinghe
 
Download full ebook of (Ebook) learning javascript 3e by kan instant download...
fonseaderit
 
FFW Gabrovo PMG - JavaScript 1
Toni Kolev
 
Introduction to java script
DivyaKS12
 
Java script ppt from students in internet technology
SherinRappai
 
Introduction to Javascript programming
Fulvio Corno
 
Introduction to javascript.ppt
BArulmozhi
 
Intro to javascript (6:19)
Thinkful
 
Web designing unit 4
Dr. SURBHI SAROHA
 
copa-ii.pptx
ERHariramPrajapat
 
MYSQL DATABASE INTRODUCTION TO JAVASCRIPT.pptx
ArjayBalberan1
 
Javascript tutorial basic for starter
Marcello Harford
 
JavaScript for beginners
Shahrukh Ali Khan
 
Unit 3-Javascript.pptx
AmanJha533833
 
Intro to javascript (5:2)
Thinkful
 
full javascript Book by Abhishek singh.pdf
AbhishekSingh961152
 
An introduction to javascript
tonyh1
 
Class[2][29th may] [javascript]
Saajid Akram
 
JavaScript - An Introduction
Manvendra Singh
 
Special Edition Using Javascript Mcfedries
envoridala
 

Recently uploaded (20)

PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
community health nursing question paper 2.pdf
Prince kumar
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Dimensions of Societal Planning in Commonism
StefanMz
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
Ad

Learning JavaScript Programming

  • 2. How to Learn Effectively • Short Note • Revise • Second Brain
  • 3. Why Choose This Course (JavaScript) • Versatility • Browser Compatibility • Large Community and Resources • Immediate Feedback • Full-Stack Development • Demand in the Job Market • Fundamental Concepts
  • 4. JavaScript Intro History of JavaScript: From Humble Beginnings to Web Domination • Birth of JavaScript (1995): • Created by Brendan Eich in just 10 days for Netscape Navigator. • Initially called "LiveScript", then renamed to "JavaScript" for marketing reasons. • Introduced interactivity to static web pages, revolutionizing web development.
  • 5. JavaScript History Early Years and Browser Wars (1995-2000): • Microsoft adopted JavaScript for Internet Explorer, sparking a fierce rivalry with Netscape. • Focused on basic features and browser compatibility, leading to fragmented implementations. • Despite lack of standardization, JavaScript gained popularity due to its ease of use. Standardization and Maturity (2000-2015): • ECMAScript standard emerged to standardize the language and guide its evolution. • Newer versions introduced significant features like object-oriented programming and functions. • Libraries and frameworks like jQuery emerged, simplifying web development with JavaScript.
  • 6. JavaScript History Reaching New Heights (2015-present): • Introduction of ES6 brought major additions like arrow functions and modules. • Node.js revolutionized server-side development, expanding JavaScript beyond browsers. • Frameworks like React and Angular gained popularity, enabling sophisticated web apps. JavaScript Today: • The dominant language for web development, powering interactive experiences for billions. • Supported by all major browsers, with a vibrant community driving its continuous evolution. • Widely adopted for various applications beyond web, like mobile and desktop development.
  • 7. IDE (Integrated Environment Tool) • VS Code • ATOM • Sublime Text • Notepad • Web Strome • PHP Strome
  • 8. Set up IDE • VS Code
  • 9. Server Install • Xampp • Wamp Server • Lamp
  • 10. Connected with AI • Create account in OPENAI and Google Birds
  • 11. Setup some account & software • GitHub • Notion • Stack overflow
  • 12. Server related issue fixup • Xampp (Apache and mysql)
  • 14. Start JavaScript • Simple hello world in console log
  • 15. JavaScript Syntax • A letter (A-Z or a-z) • A dollar sign ($) • Or an underscore (_) • JS is case sensitive
  • 16. JavaScript Syntax • JS reversed words • Link: https://www.w3schools.com/js/js_reserved.asp
  • 17. JavaScript Syntax Hyphens: • first-name, last-name, master-card, inter-city. Underscore: • first_name, last_name, master_card, inter_city. Upper Camel Case (Pascal Case): • FirstName, LastName, MasterCard, InterCity. Lower Camel Case: • firstName, lastName, masterCard, interCity.
  • 18. JS Comment • Single line //this is a single line comment • Multi line Comment /* this is multiple line comment For test basis */
  • 19. JS Variable • var • let • const
  • 20. JS Operator • Arithmetic Operators • Assignment Operators • Comparison Operators • String Operators • Logical Operators • Bitwise Operators • Ternary Operators
  • 21. Arithmetic Operation + Addition - Subtraction * Multiplication ** Exponentiation / Division % Modulus (Remainder) ++ Increment -- Decrement
  • 22. Assignment Operators = x = y x = y += x += y x = x + y -= x -= y x = x - y *= x *= y x = x * y /= x /= y x = x / y %= x %= y x = x % y **= x **= y x = x ** y
  • 23. Comparison Operators == equal to === equal value and equal type != not equal !== not equal value or not equal type > greater than < less than >= greater than or equal to <= less than or equal to
  • 24. String Operators let str1 = “Hriday"; let str2 = “Ahmed"; let result = (str1 + str2); console.log(result);
  • 25. Logical Operators && and (x < 10 && y > 1) is true || or (x == 5 || y == 5) is false ! not !(x == y) is true
  • 26. Conditional (Ternary) Operator let voteable = (age < 18) ? "Too young": "Old enough";
  • 27. Bitwise Operators & AND Sets each bit to 1 if both bits are 1 | OR Sets each bit to 1 if one of two bits is 1 ^ XOR Sets each bit to 1 if only one of two bits is 1 ~ NOT Inverts all the bits << Zero fill left shift Shifts left by pushing zeros in from the right and let the leftmost bits fall off >> Signed right shift Shifts right by pushing copies of the leftmost bit in from the left, and let the rightmost bits fall off >>> Zero fill right shift Shifts right by pushing zeros in from the left, and let the rightmost bits fall off
  • 28. JS data types • 1. String 2. Number 3. Bigint 4. Boolean 5. Undefined 6. Null 7. Object