Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Introduction to JavaScript - Part 2

Introduction to JavaScript - Part 2

Master functions and loops in JavaScript
Created byLucas Bazilio
Last updated 11/2026
English

What you'll learn

  • How to use conditional statements to control program execution.
  • How to implement loops to repeat instructions efficiently.
  • How to create and call functions in JavaScript.
  • How to organize code into reusable and maintainable functions.
  • How to combine these concepts to develop more complex JavaScript programs.

Course content

3 sections • 16 lectures • 1h 58m total length
  • If and Else Statements7:33

    In this lecture, we introduce if and else statements in JavaScript.

  • Else If Statements4:10

    In this lecture, we introduce else if statements in JavaScript.

  • Conditional Ternary Operators2:31

    In this lecture, we introduce conditional ternary operators in JavaScript.

  • Switch Statements4:29

    In this lecture, we introduce switch statements in JavaScript.

Requirements

  • Students should have completed Introduction to JavaScript – Part 1 or possess equivalent knowledge of JavaScript fundamentals.

Description

In this course, you will continue developing your JavaScript programming skills by exploring three essential concepts: conditional statements, loops, and functions. These concepts will allow you to write more sophisticated programs, control how your code executes, and organize your instructions more effectively.

You will begin by learning about conditional statements, understanding how to use if, else if, and else to make decisions in your programs. You will also explore the switch statement as an alternative way of handling multiple possible conditions. Through practical examples, you will learn how to control program execution depending on different situations.

Next, you will study loops, which are fundamental for repeating instructions without having to write the same code multiple times. You will learn how to use while, do...while, and for loops, understanding how each one works and when it is appropriate to use them. You will also explore how to control loop execution and solve problems involving repetitive operations.

Finally, you will learn about functions, one of the most important building blocks of any programming language. You will discover how to define and call functions, work with parameters and arguments, return values, and organize your programs into smaller, reusable blocks of code.

Throughout the course, you will work with practical examples that illustrate each concept and help you understand how these programming structures can be combined.

By the end of this course, you will be able to:

  • Use conditional statements to implement decision-making logic.

  • Apply different types of loops to automate repetitive tasks.

  • Define and invoke functions with parameters and return values.

  • Organize programs into reusable and structured blocks of code.

  • Combine conditional statements, loops, and functions to develop more complex JavaScript applications.

This course will provide you with an important step towards becoming a more confident JavaScript programmer.

Who this course is for:

  • Students with basic JavaScript knowledge.
  • Learners who want to improve their JavaScript programming skills.