Advance javaScript
Advance javaScript
1. JS in Console
2. DOM Manipulation
3. Chrome Extensions
4. What is a Programming
Language?
5. What is Syntax?
6. HTML/CSS/JavaScript
1. JS in Console (Inspect)
Console can be
used as a
Calculator
2. DOM Manipulation
1. Change HTML
2. Change CSS
3. Perform
Actions
3. Chrome Extensions
1. Create Features: Add
new functionalities to
Chrome.
2. Interact with Web:
Modify or read webpage
content.
3. API Access: Use
Chrome's built-in
functions.
4. User Experience:
Enhance or customize
4. What is a Programming
Language? • Giving instructions to a
computer
• Instructions: Tells
computer what to do.
• These instructions are
called code.
5. What is a Syntax?
• Structure of words in a
sentence.
• Rules of the language.
• For programming exact
syntax must be followed.
6. FrontEnd / BackEnd / FullStack
Full Stack
6. Role of Browser
1. Structure: Sets up
the layout.
2. Content: Adds
text, images,
links.
3. Tags: Uses
elements like
<p>, <a>.
4. Hierarchy:
6. CSS
(Cascading Style
Sheets)
12.TypeOf Operator
7. Arithmetic Operators
Myntra Cart
8. Order of Operations
Cart
9. Types of Numbers (Integers & Floats)
9. Types of Numbers (Float Problems)
9. Types of Numbers
11.Strings
12.TypeOf Operator
Practice
Exercise
1. At a restaurant you ate:Numbers
1 Dal ₹& 100,
Strings
2 Roti
₹10 each, 1 Ice Cream ₹30, calculate and
display the final bill amount.
2. Calculate 18% GST on iPhone15 ₹79,990
and 2 Air pods Pro ₹24990 each.
3. Create strings using all 3 methods.
4. Concatenate String with Strings, and
String with numbers.
5. Create Order Summary String for our
Myntra Cart.
6. Display order summary in a popup
JavaScript With HTML & CSS
15.CSS Introduction
16.Query Selector
17.Script Tag
18.Comments
13. What is IDE
1. IDE stands for
Integrated
Development
Environment.
2. Software suite that
consolidates basic
tools
required for
software
development.
3. Central hub for
coding, finding
problems, and
13. Need of IDE
1. Streamlines
development.
2. Increases productivity.
3. Simplifies complex
tasks.
4. Offers a unified
workspace.
5. IDE Features
1. Code Autocomplete
2. Syntax Highlighting
3. Version Control
13. Installation & Setup
1. Search VS Code
2. Keep Your Software up to
date
13. Opening project in VsCode
13. VsCode Extensions and Settings
1. Live Server
2. Prettier
3. Line Wrap
4. Tab Size from 4 to
2
13. Using Emmet ! to generate
code 1. Type ! and wait for
suggestions.
14 HTML Tags Introduction
1. Elements that are used
to create a website are
called HTML Tags.
2. Tags can contain
content or other HTML
tags.
3. Define elements like
text, images, links
14 Heading Tag
1. Provides additional
information about
elements
2. Placed within opening tags
3. Common examples: href,
src, alt
4. Use name=value format
5. Can be single or multiple
15 CSS (Basic Syntax)
Introduction
15.CSS Introduction
16.Query Selector
17.Script Tag
18.Comments
Practice
Exercise
JavaScript With HTML & CSS
21.Updating Values
23.Naming Conventions
24.Ways to create
Variables
19. What are Variables?
snake_case
• Start with an lowercase letter. Separate words with
underscore
• Example: my_variable_name
Kebab-case
• All lowercase letters. Separate words with hyphens. Used for HTML and
CSS.
• Example: my-variable-name
20.Syntax Rules
21.Updating Values
23.Naming Conventions
24.Ways to create
Variables
Practice
Exercise
1. Save your name in a variable inside script
Variables
tag
2. Display name from the variable on the
page
3. Calculate the cost of Myntra Bag and keep
it in a variable
4. Show it to console
5. Keep GST percentage as constant
6. Use eval method from math to convert
string calculation into result
Project One: Calculator
if-else &
Boolean
25.What are Booleans
26.Comparison Operators
27.if-else
28.Logical Operator
29.Scope
30.Truthy and Falsy Values
31.If alternates
Create
25. What are Booleans?
Equality
== Checks value equality.
=== Checks value and type equality.
Inequality
!= Checks value inequality.
!== Checks value and type inequality.
Relational
> Greater than.
< Less than.
>= Greater than or equal to.
<= Less than or equal to.
Order of comparison operators is less than arithmetic operators
27. if-else
1. Syntax: Uses if () {} to check a condition.
2. What is if: Executes block if condition is true, skips if
false.
3. What is else: Executes a block when the if condition
is false.
4. Curly Braces can be omitted for single statements,
but not recommended.
5. If-else Ladder: Multiple if and else if blocks; only
one
executes.
6. Use Variables: Can store conditions in variables for
use in if statements.
Project Cricket Game
Defea
ts
Defea
ts
28. Logical Operators
Defea
ts
Defea
ts
29. Scope
Defea
ts
Defea
ts
30. Truthy and Falsy Values
1. Falsy Values: 0, null, undefined, false,
NaN, "" (empty string)
2. Truthy Values: All values not listed as
falsy.
3. Used in conditional statements like if.
4. Non-boolean values are auto-
converted in logical operations.
5. Be explicit in comparisons to avoid
unexpected behaviour.
31. If alternates
1. Ternary Operator: condition ? trueValue :
falseValue
Quick one-line if-else.
2. Guard Operator: value || defaultValue
Use when a fallback value is needed.
3. Default Operator: value ?? fallbackValue
Use when you want to consider only null and undefined
as falsy.
4. Simplifies conditional logic.
5. Use wisely to maintain readability.
if-else &
Boolean
Revisio
25. n
What are Booleans
26.Comparison
Operators
27.if-else
28.Logical Operator
29.Scope
Values
Practice
Exercise
if-else & Boolean
1. Give discount based on age, gender for metro
ticket
- Females get 50% off
- Kids under 5 years of age are free
- Kids up to 8 years have half ticket
-People Over 65 years of age only pay
30% of the ticket
-In case of multiple discounts max
discount will apply.
Function
s
32. What are Functions
33. Function Syntax
34. Return statement
35. Function Parameters
Improve Project
32. What are
Functions?
Defea
ts
34. Return statement
Defea
ts
35. Parameters
Defea
ts
Function
s
Revisio
n
32. What are Functions
33. Function Syntax
34. Return statement
35. Function
Parameters
Practice
Exercise
Functions
1. Create a method to check if a number
is odd or even.
2. Create a method to return larger of
the two numbers.
3. Create Method to convert Celsius to
Fahrenheit
F = (9/5) * C + 32
Objects
36. What is an Object
37. Objects Syntax
38. Accessing
Objects
39. Inside Objects
40. Autoboxing
41. Object
References
42. Object Shortcuts
Maintain score Project
36. What is an
Object?
ts
Defea
ts
Defea
ts
39. Inside Object
Defea
ts
Objects
Revisio
n
36. What is an Object
37. Objects Syntax
38. Accessing
Objects
39. Inside Objects
40. Autoboxing
41. Object
References
42. Object Shortcuts
Practice
Objects
Exercise
1. Create object to represent a product from Myntra
2. Create an Object with two references and log
changes to one object by changing the other one.
3. Use bracket notation to display delivery-time.
4. Given an object {message: 'good job', status:
'complete'},
use de-structuring to create two variables
message and status.
5. Add function isIdenticalProduct to compare two
product objects.
JSON, Local Storage, Date & DOM
43. What is JSON?
44. Local Storage
45. Date
46. DOM Properties &
Methods
Finis Project
h
43. What is JSON?
Defea
ts
45. Date
Defea
ts
Project Cricket Game
ts
Defea
ts
Defea
ts
JSON, Local Storage, Date & DOM
Revision
1. Filter Method:
• Syntax: array.filter((value, index) => return
true/false)
• Use: Filters elements based on condition.
2. Map Method:
• Syntax: array.map((value) => return
newValue)
• Use: Transforms each element.
Advance
Functions
Revisio
n
56. Anonymous Functions As
Values
57. Arrow functions
58. setTimeout & setInterval
59. Event Listener
60. For Each Loop
61. Array methods
Practice
Advance
Exercise
1.
Functions
Create a variable multiply and assign a function to
this variable that multiplies two numbers. Call this
method from
the variable.
2. Create a function runTwice that takes a
function as a parameter and then runs that
method twice.
3. Create a button which should grow double in
size on clicking after 2 seconds.
4. In the above exercise add the behavior using
an event listener instead of onclick.
5. Create a function that sums an array of numbers.
Do this using a for-each loop.
6. Create a function that takes an array of numbers