Variables, Data Types, and Operators

Lectures 12 • 40 slides

Narration

Session 12 Slide 1: Welcome to JavaScript Basics ②

Today's Theme

JavaScript Basics ②: Conditional Branching, Loops, and Functions

Review of Last Time

  • Variables (let, const)
  • Data Types (string, number, boolean)
  • Operators (arithmetic, comparison, logical)

What You Will Learn Today

You will learn about program "control".

flowchart TD A[Program Start] --> B[Sequential Processing] B --> C{Conditional Branching} C -->|Condition A| D[Process A] C -->|Condition B| E[Process B] D --> F[Looping Process] E --> F F --> G{Continuation Condition} G -->|Yes| F G -->|No| H[Function Call] H --> I[Program End]

3 Control Structures

  1. Sequential Processing - Execute in order from the top
  2. Conditional Branching - Change processing depending on conditions
  3. Looping - Execute the same process many times

Function

  • Group processes and give them a name
  • Code reuse
  • Improved maintainability

Today's Goal

Be able to write practical programs

1/40

Apps - Try Now

SaaS web services and mobile apps from Yamashin Research Lab.

View Apps