Video: Getting to Know Block Statements in JavaScript

    M. David Green
    M. David Green

    In this lesson, you will learn about how JavaScript lets you group statements, and why that can be useful. You will be introduced to the syntax of statement groups, and get an overview of how statement groups can be used for conditional logic as well as for control flow. This is only one small section of a course that takes beginners from simple variables and types all the way through the fundamentals of functions and scope in JavaScript.

    My course Introduction to Programming with JavaScript was designed for people who may never have coded, or may have copied and pasted other people’s scripts into a web page without really understanding how they worked. It’s a good general introduction to the concepts of programming in JavaScript, and the features of the language.

    If you like what you see here, and want to learn more, please sign up for SitePoint Premium to gain access to the entire course.

    Loading the player…