SlideShare a Scribd company logo
JavaScript
PRESENTATION
<p> By: Xai Mae Charnelle R. Sopsop </p>
TABLE OF CONTENT
01
02 03 04 05
06 07 08 09
10 11 12 13
What is
Javascript
History of
JavaScript
Where can we
code
JavaScript?
JavaScript
Basic Example
External
Javascript
Variable Data Types
String &
Numbers
Boolean
Array &
Object
Null &
Undefined
Conditional
Statements
Loops
What is Javascript?
<p> JavaScript is a programming language for
websites. It can manipulate both html and css.</p>
It can perform logical checks, calculation, modify
existing html & Css codes and more.
One of the most in-demand programming
languages in the tech industry.
● <p> Key Milestones in JavaScript's History:
• 1995: JavaScript was created by Brendan Eich at Netscape (initially called Mocha, then LiveScript).
• 1997: The ECMAScript standard was introduced to standardize JavaScript.
• 2005: The rise of AJAX brought dynamic content updates to web applications.
• 2009: Node.js was introduced, making JavaScript a full-stack language.
• 2015: ECMAScript 6 (ES6) introduced new language features, modernizing JavaScript.
● Who Created JavaScript?
• Brendan Eich, who developed JavaScript while working at Netscape Communications in 1995. He
is often referred to as the "father of JavaScript.“ </p>
History of JavaScript
& Who created Javascript
Where can we code JavaScript?
<p> Text Editor </p>
 Any software used to edit text. Then we can use other text editors. Are
especially made for coding that incorporates colored text foe a certain
language like JavaScript, It may also be called as an Integrated Development
Environment (IDE).
 So, there are text editor we can use the Notepad, Notedpad++ (IDE) and Visual
Studio Code (IDE).
JavaScript Basic Example
console.log in JavaScript
● console.log() is a built-in JavaScript method
used to output or log information to the
browser’s console. It's extremely useful for
debugging and tracking the flow of your
code, as it allows you to view variable values,
error messages, and more in the developer
tools console.
<script> Tag in HTML
● The <script> tag is used in HTML to
embed or link to JavaScript code. It can
be placed either in the <head> or at
the bottom of the <body> section. It
tells the browser that the content
inside the tag is JavaScript code, which
should be executed.
Introduction to JavaScript presentations
External JavaScript
<p> What is external JavaScript? </p>
External JavaSript refers to a JavaScript file that is stored separately from an HTML document.
Instead of embedding the Javascript code directly within the HTML using <script> tags, an external
JavaScript file is linked to the HTML document.
Script.js
Index.html
Introduction to JavaScript presentations
VARIABLE
 An temporary containers that can be hold
different types of data such as text,
numbers collections, objects and etc.
 Variable csn be named for easy read/write
access by the programmer it is called
identifier.
DATA
TYPES
The type of data that the variable is currently holding.
1. String 5. Object
2. Number 6. Null
3. Boolean 7. Undefined
4. Array
String (TEXT)
 A string is just a piece of text.
 It’s wrapped in either single quotes
(‘) or a double quotes (“).
 A number is any numerical value.
 It can be integer(whole numbers) or a
decimal (floating-point number).
NUMBER (NUMBERS)
Boolean
A Boolean can only be one of the
two values: true or false.
It’s often used in conditions or
comparisons.
Array (LIST OF VALUES)
 An object is like a “thing” that has
properties (like characteristics.
 You define properties with a name and a
value, like describing someone by their
name and age.
Object ( COLLECTION
OF RELATED DATA
 An array is a collection of values, kind of like a
list.
 The values can be on any type (strings,
number, etc.), and they are ordered by their
postion in the list.
Null (NO VALUE)
Undefined
 In JavaScript, null is a primitive
value that represents the intentional
absence of any object value. It
essentially means "nothing" or
"empty.“
 It is used when you want to clear or
empty something on purpose.
 When you declare a variable without
assigning a value to it, it
automatically gets the value undefined.
CONDITIONAL STATEMENTS
What is a Conditional Statement?
A conditional statement is a programming construct that allows you to execute
different blocks of code based on whether a condition is true or false. In
JavaScript, conditional statements include:
1.if statement: Executes a block of code if a condition is true.
2.else statement: Executes a block of code if the if condition is false.
3.else if statement: Allows you to check multiple conditions in sequence.
LOOP Type
Loop Type Purpose Example Use Case
for
Repeat code a specific
number of times
Iterating over a
range of numbers
while
Repeat code as long as a
condition is true
Reading input until a
valid value
do...while
Repeat code at least once,
then continue if a
condition is true
Menu-driven programs
for...in
Iterate over the
properties of an object
Looping through
object keys
for...of
Iterate over the elements
of an iterable (e.g.,
arrays, strings)
Looping through array
elements
forEach
Iterate over array
elements using a callback
function
Processing array
elements
THANK
YOU!
Do you have any questions?
NEXT PAGE: Test
Questionnaire
Here’s a 10-item multiple-choice test.
JavaScript Quiz
Instructions: Read each question carefully and choose the correct answer.
1. Who created JavaScript?
a) Tim Berners-Lee
b) Brendan Eich
c) Bill Gates
d) Dennis Ritchie
2. In what year was JavaScript created?
a) 1995
b) 2005
c) 2015
d) 1989
3. What is the purpose of JavaScript in web development?
a) To style webpages
b) To structure content
c) To add interactivity
d) To manage databases
4. Which of the following is a valid JavaScript variable declaration?
a) variable x = 10;
b) var x = 10;
c) let = x 10;
d) const 10 = x;
5. Which of these is a data type in JavaScript?
a) Picture
b) Boolean
c) HTML
d) CSS
6. What does console.log() do in JavaScript?
a) Displays output in the console
b) Creates a pop-up window
c) Writes content to an HTML page
d) Styles a webpage
7. Which symbol is used for single-line comments in JavaScript?
a) <!-- -->
b) /* */
c) //
d) ** **
8. What keyword is used to define a constant variable in JavaScript?
a) let
b) const
c) var
d) static
9. What does an if statement do in JavaScript?
a) Loops through a block of code
b) Declares a function
c) Executes a block of code if a condition is true
d) Defines an object
10. What is the output of the following code?
a) null
b) object
c) undefined
d) string

More Related Content

PPTX
Powerpoint about JavaScript presentation
PPTX
Java script
PPTX
Java script
PDF
JavaScript Interview Questions with Answers
PPTX
Javascript
PPTX
Web technologies-course 07.pptx
PPTX
js.pptx
PPTX
Introduction to JAVA SCRIPT USING HTML and CSS
Powerpoint about JavaScript presentation
Java script
Java script
JavaScript Interview Questions with Answers
Javascript
Web technologies-course 07.pptx
js.pptx
Introduction to JAVA SCRIPT USING HTML and CSS

Similar to Introduction to JavaScript presentations (20)

PPTX
CSC PPT 12.pptx
PPTX
Scala Italy 2015 - Hands On ScalaJS
PPTX
Alberto Paro - Hands on Scala.js
PDF
8.-Javascript-report powerpoint presentation
PPTX
Introduction to JavaScript Programming
PPTX
Final Java-script.pptx
PDF
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
PPTX
HNDIT1022 Week 08, 09 10 Theory web .pptx
PPTX
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
PDF
PDF
Frontend Interview Questions PDF By ScholarHat
PPTX
Java Script - A New Look
PPTX
Javascript analysis
PDF
Unit 4(it workshop)
PDF
Best Programming language course in jalandhar
PPT
Ajax and JavaScript Bootcamp
PPTX
Java script
PPTX
#SPSEMEA SharePoint & jQuery - What I wish I would have known a year ago..
PPTX
Java script basics
PPTX
Java script
CSC PPT 12.pptx
Scala Italy 2015 - Hands On ScalaJS
Alberto Paro - Hands on Scala.js
8.-Javascript-report powerpoint presentation
Introduction to JavaScript Programming
Final Java-script.pptx
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HNDIT1022 Week 08, 09 10 Theory web .pptx
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
Frontend Interview Questions PDF By ScholarHat
Java Script - A New Look
Javascript analysis
Unit 4(it workshop)
Best Programming language course in jalandhar
Ajax and JavaScript Bootcamp
Java script
#SPSEMEA SharePoint & jQuery - What I wish I would have known a year ago..
Java script basics
Java script
Ad

Recently uploaded (20)

PDF
Insiders guide to clinical Medicine.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Pre independence Education in Inndia.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf
01-Introduction-to-Information-Management.pdf
Institutional Correction lecture only . . .
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
O7-L3 Supply Chain Operations - ICLT Program
Abdominal Access Techniques with Prof. Dr. R K Mishra
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
GDM (1) (1).pptx small presentation for students
Pre independence Education in Inndia.pdf
Cell Structure & Organelles in detailed.
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Module 4: Burden of Disease Tutorial Slides S2 2025
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Ad

Introduction to JavaScript presentations

  • 1. JavaScript PRESENTATION <p> By: Xai Mae Charnelle R. Sopsop </p>
  • 2. TABLE OF CONTENT 01 02 03 04 05 06 07 08 09 10 11 12 13 What is Javascript History of JavaScript Where can we code JavaScript? JavaScript Basic Example External Javascript Variable Data Types String & Numbers Boolean Array & Object Null & Undefined Conditional Statements Loops
  • 3. What is Javascript? <p> JavaScript is a programming language for websites. It can manipulate both html and css.</p> It can perform logical checks, calculation, modify existing html & Css codes and more. One of the most in-demand programming languages in the tech industry.
  • 4. ● <p> Key Milestones in JavaScript's History: • 1995: JavaScript was created by Brendan Eich at Netscape (initially called Mocha, then LiveScript). • 1997: The ECMAScript standard was introduced to standardize JavaScript. • 2005: The rise of AJAX brought dynamic content updates to web applications. • 2009: Node.js was introduced, making JavaScript a full-stack language. • 2015: ECMAScript 6 (ES6) introduced new language features, modernizing JavaScript. ● Who Created JavaScript? • Brendan Eich, who developed JavaScript while working at Netscape Communications in 1995. He is often referred to as the "father of JavaScript.“ </p> History of JavaScript & Who created Javascript
  • 5. Where can we code JavaScript? <p> Text Editor </p>  Any software used to edit text. Then we can use other text editors. Are especially made for coding that incorporates colored text foe a certain language like JavaScript, It may also be called as an Integrated Development Environment (IDE).  So, there are text editor we can use the Notepad, Notedpad++ (IDE) and Visual Studio Code (IDE).
  • 6. JavaScript Basic Example console.log in JavaScript ● console.log() is a built-in JavaScript method used to output or log information to the browser’s console. It's extremely useful for debugging and tracking the flow of your code, as it allows you to view variable values, error messages, and more in the developer tools console. <script> Tag in HTML ● The <script> tag is used in HTML to embed or link to JavaScript code. It can be placed either in the <head> or at the bottom of the <body> section. It tells the browser that the content inside the tag is JavaScript code, which should be executed.
  • 8. External JavaScript <p> What is external JavaScript? </p> External JavaSript refers to a JavaScript file that is stored separately from an HTML document. Instead of embedding the Javascript code directly within the HTML using <script> tags, an external JavaScript file is linked to the HTML document. Script.js Index.html
  • 10. VARIABLE  An temporary containers that can be hold different types of data such as text, numbers collections, objects and etc.  Variable csn be named for easy read/write access by the programmer it is called identifier.
  • 11. DATA TYPES The type of data that the variable is currently holding. 1. String 5. Object 2. Number 6. Null 3. Boolean 7. Undefined 4. Array
  • 12. String (TEXT)  A string is just a piece of text.  It’s wrapped in either single quotes (‘) or a double quotes (“).  A number is any numerical value.  It can be integer(whole numbers) or a decimal (floating-point number). NUMBER (NUMBERS)
  • 13. Boolean A Boolean can only be one of the two values: true or false. It’s often used in conditions or comparisons.
  • 14. Array (LIST OF VALUES)  An object is like a “thing” that has properties (like characteristics.  You define properties with a name and a value, like describing someone by their name and age. Object ( COLLECTION OF RELATED DATA  An array is a collection of values, kind of like a list.  The values can be on any type (strings, number, etc.), and they are ordered by their postion in the list.
  • 15. Null (NO VALUE) Undefined  In JavaScript, null is a primitive value that represents the intentional absence of any object value. It essentially means "nothing" or "empty.“  It is used when you want to clear or empty something on purpose.  When you declare a variable without assigning a value to it, it automatically gets the value undefined.
  • 16. CONDITIONAL STATEMENTS What is a Conditional Statement? A conditional statement is a programming construct that allows you to execute different blocks of code based on whether a condition is true or false. In JavaScript, conditional statements include: 1.if statement: Executes a block of code if a condition is true. 2.else statement: Executes a block of code if the if condition is false. 3.else if statement: Allows you to check multiple conditions in sequence.
  • 17. LOOP Type Loop Type Purpose Example Use Case for Repeat code a specific number of times Iterating over a range of numbers while Repeat code as long as a condition is true Reading input until a valid value do...while Repeat code at least once, then continue if a condition is true Menu-driven programs for...in Iterate over the properties of an object Looping through object keys for...of Iterate over the elements of an iterable (e.g., arrays, strings) Looping through array elements forEach Iterate over array elements using a callback function Processing array elements
  • 18. THANK YOU! Do you have any questions? NEXT PAGE: Test Questionnaire
  • 19. Here’s a 10-item multiple-choice test. JavaScript Quiz Instructions: Read each question carefully and choose the correct answer. 1. Who created JavaScript? a) Tim Berners-Lee b) Brendan Eich c) Bill Gates d) Dennis Ritchie 2. In what year was JavaScript created? a) 1995 b) 2005 c) 2015 d) 1989 3. What is the purpose of JavaScript in web development? a) To style webpages b) To structure content c) To add interactivity d) To manage databases 4. Which of the following is a valid JavaScript variable declaration? a) variable x = 10; b) var x = 10; c) let = x 10; d) const 10 = x;
  • 20. 5. Which of these is a data type in JavaScript? a) Picture b) Boolean c) HTML d) CSS 6. What does console.log() do in JavaScript? a) Displays output in the console b) Creates a pop-up window c) Writes content to an HTML page d) Styles a webpage 7. Which symbol is used for single-line comments in JavaScript? a) <!-- --> b) /* */ c) // d) ** ** 8. What keyword is used to define a constant variable in JavaScript? a) let b) const c) var d) static 9. What does an if statement do in JavaScript? a) Loops through a block of code b) Declares a function
  • 21. c) Executes a block of code if a condition is true d) Defines an object 10. What is the output of the following code? a) null b) object c) undefined d) string