Lesson 1 2 3 - JS
Lesson 1 2 3 - JS
LESSON NO. 1
OBJECTIVES:
LESSON NO. 2
OBJECTIVES:
• 1. Understand the purpose and importance of embedding
JavaScript code in an HTML file using <script> tags.
• 2. Analyze and interpret the output generated by executing
JavaScript code and make connections to the underlying
program logic.
• 3. Demonstrate the correct syntax for embedding JavaScript
code within <script> tags.
REVIEW!
• 3. What is concatenation?
UNDERSTANDING THE STRUCTURE OF A BASIC
JAVASCRIPT PROGRAM
•S Y N T A X
• Syntax refers to the rules and structure that define the
correct way to write code in a programming language. It
governs how individual statements and elements are
arranged to form valid and meaningful code.
UNDERSTANDING THE STRUCTURE OF A BASIC
JAVASCRIPT PROGRAM
• Keywords - Examples of keywords in JavaScript include var,
if, else, and function.
• Ex. 5 + 3 is an expression
UNDERSTANDING THE STRUCTURE OF A BASIC
JAVASCRIPT PROGRAM
• Brackets and Parentheses - Brackets [ ] and parentheses ( )
are used to group code and indicate precedence.