
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Download and install Visual Studio Code for your operating system, then open the JavaScript course folder. Use Visual Studio Code for all future JavaScript MasterClass lessons.
Discover the three core tenets of JavaScript code structuring: statements as building blocks, the role of semicolons, and comments that explain what and why as programs grow in complexity.
Explore JavaScript variable naming rules, including allowed characters, first character restrictions, and camel case usage, with examples using dollar and underscore prefixes and common invalid names.
Declare constants with const to create unchanging variables that cannot be reassigned, triggering errors. They can be known prior to execution or calculated at runtime, in uppercase underscores like color_red.
Explore the undefined data type for unassigned values in JavaScript; a standalone type with a single value that denotes a variable has not been assigned yet.
Learn how JavaScript converts types, focusing on string, number, and boolean conversions, with practical examples of converting a boolean to a string using typeOf and alert.
Learn how boolean conversions in JavaScript treat empty values such as zero, empty string, undefined, and NaN as false, and other values as true.
Learn how JavaScript's six core operators work on numbers—addition, subtraction, multiplication, division, remainder, and exponentiation—and see practical examples like two to the power of five and ten divided by two.
Explore how JavaScript comparisons return booleans using greater than, less than, greater than or equals, and not equal.
Explore if else statements in JavaScript using comparisons and prompts, and see how alerts respond. Test with 2015 to see you are right, else you are wrong.
Explore else if in JavaScript by extending if statements to handle multiple conditions, using secondary conditionals to classify a year as early, exactly, or too late.
Explore the question mark syntax to write concise conditional expressions in JavaScript, using a prompt-based age check to determine access when age is greater than 18 and trigger alerts.
Explore the not operator in JavaScript, using the exclamation mark to invert booleans, understand true/false outcomes, and how double exclamation marks yield the original value.
This JavaScript Fundamentals course is designed to provide you with a solid foundation in JavaScript programming. Whether you're a beginner or have some prior experience, this course will take you through the fundamental concepts and techniques of JavaScript programming.
The course begins with an introduction to the structure of JavaScript code, teaching you how to write clean and organized code that is easy to read and maintain. You will learn about variables and how to declare and assign values to them. We will also cover the importance of using strict mode and how it helps in writing more reliable code.
Next, we dive into the world of data types in JavaScript. You will learn about primitive data types such as strings, numbers, booleans, and the special value "null" and "undefined." We will explore how to work with these data types, perform operations on them, and understand type conversions.
Interaction is a crucial aspect of JavaScript programming, and in this course, we will cover various methods to interact with the user. You will learn how to prompt the user for input, display messages, and handle user interactions through events.
Conditional statements are essential in programming, and JavaScript offers powerful conditional constructs. We will explore if-else statements, allowing you to make decisions based on certain conditions. Additionally, we will cover switch statements, which provide an elegant way to handle multiple possible outcomes.
Functions are the building blocks of JavaScript applications, and in this course, we will dive deep into this topic. You will learn how to define and call functions, pass arguments, and return values. We will also cover function expressions and arrow functions.
By the end of this course, you will have a strong understanding of JavaScript fundamentals. You will be able to write well-structured code, declare and manipulate variables, use conditional statements effectively, and create reusable functions. Whether you're interested in web development, game development, or any other JavaScript-based project, this course will provide you with the necessary skills to get started.