
Explore how modern JavaScript, including ES6 concepts and best practices, empowers you to use the full language—from loops and conditionals to DOM manipulation and debugging—beyond the browser.
Explore how HTML structures pages with tags like h1, p, article, ul and li, and how CSS styles override default HTML to control color, font, and layout.
Learn how JavaScript powers the web as a mature, flexible language used from HTML pages to backend servers with Node.js, Express, MongoDB, and JSON.
Trace the history of JavaScript from its 1995 origin to ECMAScript standards, from ES1 to ES6, and learn how the modern language evolved across browsers.
Learn the essential tools for starting JavaScript: a text editor and a browser JavaScript engine, with the Chrome browser used for testing and exploring examples.
Write JavaScript that does what it's supposed to do, keeping code small and readable to speed browser downloads, and use separate files to stay manageable.
Begin by setting up a simple web page, add a script tag and link an external JavaScript file, declare a variable, concatenate strings, and display a welcome message with document.write.
Use the JavaScript console in Chrome developer tools to view output without altering the page, via console.log. Access the console with inspect, enter JavaScript, and test immediately.
Master JavaScript coding conventions by noting case sensitivity, the recommended use of semicolons, and readable whitespace; adopt camelCase for variables, proper indentation, and clear single-line and multi-line comments.
Create and link a JavaScript file to an HTML document, then declare first name and last name variables and log them to the console with a space in between.
Explore how types and values drive JavaScript by manipulating values with variables, and differentiate strings, numbers, booleans, undefined, null, symbols, and objects, including primitive types versus objects.
Learn how to manipulate values in JavaScript using operators on strings and numbers, including concatenation and escape sequences, arithmetic, booleans true and false, and order of operations.
Learn how to use variables as containers for data in JavaScript, declare with var, assign values, update them, concatenate strings, and perform arithmetic in the console.
Understand dynamic typing in JavaScript, where variables can hold strings, numbers, booleans, undefined, objects, arrays, or functions, and learn about string length, reserved keywords, and using var for declaration.
Learn how to declare variables with let in modern JavaScript, compare let to var, and understand how scope determines where a variable is accessible in your code.
Declare constants with the const keyword to hold values that cannot be changed, as shown by assigning pi to 3.14 and preventing reassignment.
Explore null and undefined as JavaScript indicators of nothingness, contrasting system-defined undefined with programmer-defined null. Learn how to check for these values and understand differences in variables like current user.
Explore JavaScript operators, over 30 in total, from increment and modulo to the type of operator and strict equality, and learn when to use strict versus loose comparisons.
Explore how coercion arises in JavaScript's dynamically typed environment, where the plus operator combines a number and a string to yield a string result, highlighting debugging of type issues.
Understand JavaScript hoisting by watching how variables sit in memory before execution, why undefined appears, and how declaring variables at the top with the var keyword prevents issues.
Learn how JavaScript objects store multiple values as properties, methods, and arrays using name-value pairs and dot notation; then access data with console.log and built-in date and math objects.
Explore the JavaScript Math object, a predefined set of numeric utilities accessed via dot notation, including random, round, floor, ceil, min, and max.
Master creating a date object with the date constructor and new keyword, observe zero-based month values, and use get time to compute elapsed milliseconds, seconds, and minutes.
Explore template strings as a modern JavaScript feature, using backticks, the dollar sign, and braces to embed variables like name, with browser and node support.
Learn how to test the start and end of a string in JavaScript using startsWith and endsWith on the string object wrapper, with position or length parameters and browser support.
Create a date object, use get date, get month, and get full year to form day/month/year; adjust zero-based month and print with console.log or a template string.
Link the JavaScript file to the HTML file with a script tag to wire code. Print a random number from zero to ten to the console using Math.random and Math.round.
Attach the JavaScript file to the HTML page and calculate the hours since January 1, 2000 using date objects, milliseconds, and Math.floor to print full hours to the console.
Explore control structures in JavaScript by learning how conditionals and loops decide when to execute code. Learn if statements, else branches, and while loops with proper curly brace syntax.
Declare variables and use the if conditional with strict equality to test undefined values, then apply modulus to determine even or odd numbers and log results to the console.
Learn how to use the if conditional to assess voting eligibility with age, using greater than or equal to 18 and a can vote boolean, and explore true/false outcomes.
Demonstrate comparison operators, including greater than, less than, and their equal-to variants. Show how to combine conditions with and, or, and not to evaluate username against undefined or null.
Explore truthy and falsey values in JavaScript and how conditional expressions determine truth or false, with examples like undefined, null, zero, -0, empty strings, and false.
Explore string conditionals by using string object methods such as to lowercase, to uppercase, trim, index of, slice, and substring to compare answers and handle case, spaces, and zero-based positions.
Learn how to handle multiple conditions in JavaScript by chaining else if statements to map a date's day number (0–6) to the actual weekday and print it with console.log.
Explore the switch statement as an alternative to if-else, define case blocks for each day of the week, and use break to stop execution; learn when switch improves readability.
Discover the ternary operator, a shortcut for if statements. Use a condition, question mark, and colon to output 'you are able to vote' or 'you are not able to vote'.
Use conditionals and nested if statements to sort three numbers—6, -5, and 2—from largest to smallest, and output the results to the console.
Explore the while loop syntax and its condition-driven code block, compare it with do while, generate a random 0–10 until five is reached, and count iterations with a template string.
Learn how to use a while loop to locate the third B in a sentence and extract the substring with slice. Compare while and for loops and prevent infinite loops.
Explore how to use the for loop in JavaScript, with initialization, condition, and modification, and compare it to the while loop. See examples that print 1–10 and reverse a sentence.
Use a for loop between one and one hundred to identify multiples of six, using the modulus operator and a block-scoped let variable to log each result.
Explore JavaScript's additional assignment operators, including +=, -=, *=, /=, and %=, with practical examples showing how they shorten expressions and update left-hand variables.
Discover how the brake statement exits a loop immediately when a condition is met, as shown in a for loop example; execution resumes after the loop.
Explore the dry code principle in JavaScript, learning to avoid repetition with loops and control structures. Practice writing maintainable JavaScript by applying dry concepts in loop exercises.
Practice implementing a Fibonacci sequence in JavaScript with a loop of your choice, starting with zero and one, up to a thousand, storing and displaying the sequence in the console.
Practice a for loop from 1 to 100, using the modulus operator to find numbers divisible by both 3 and 5, and log them to the console.
Learn how to create arrays with brackets in JavaScript, reference elements by zero-based index, and compare arrays to objects using a grades example to illustrate length and access.
Learn how dynamic arrays grow and shrink by adding elements with indices, push, and unshift, and removing with pop and shift, while tracking length and undefined gaps.
Apply arrays to map the date object's get day method to a days of the week array, reducing conditional code and printing the current day.
Discover how to loop through arrays with a for loop, sum grades, compute the average using the array length and zero-based indexing, and print the result.
Explore how sparse arrays occur when elements are missing or removed with delete. Use checks for undefined, apply continue in loops, and adjust averages by excluding undefined values consistently.
Explore core array methods in JavaScript, including toString, join, reverse, sort, indexOf, and lastIndexOf, and learn how they modify arrays and locate values.
Learn how to convert strings to arrays in JavaScript using the split method, separating the URL query string or spaces, and handle results in the console.
Learn how to modify arrays with the splice method in JavaScript, removing or adding elements by index and count, with the method mutating the original array and returning removed items.
Remove duplicates from a fruits array by sorting with the sort method, then iterate backward to compare adjacent items and splice out duplicates, logging results.
Explore how functions structure JavaScript programs, reduce repetition, isolate code to prevent collisions, and enable reusable, modular behavior through methods and frameworks.
Learn how to define functions in JavaScript using the function keyword, optional names or anonymous forms, parentheses, and curly braces, then call them as functions or object methods.
Explore function declarations and function expressions in JavaScript and learn how hoisting affects their behavior. Compare their usage, the role of variables, and when to prefer expressions over declarations.
Illustrates how functions accept arguments via parameters in declarations and expressions, sums two numbers, and logs the result; compares missing-argument handling using conditionals and default parameter values.
Create a reusable JavaScript function that generates a random number between min and max using Math.random, apply floor or ceiling for accuracy, and return the value instead of logging.
Learn how the return statement makes a function reusable by returning values and letting the caller use the result, such as a random number, while handling undefined inputs and refactoring.
Learn how scope defines variable availability, compare var and let behavior, and see how global, function, and block scopes affect hoisting and access in for loops.
Explore JavaScript scope with nested functions, showing how variables resolve from inner to outer environments and how not using var/let can redefine a global variable.
Not necessary, but if you want to watch more on the topic of Higher Order functions, here is a link to a tutorial on my YouTube channel: https://youtu.be/O9lMynNdka4
Explore arrow function syntax in JavaScript, compare it with traditional functions, and identify when to use them in high-order functions for cleaner, compact code with optional braces and return.
Create a JavaScript function that returns a fibonacci sequence as an array for a given length, using a for loop and testing with multiple numbers.
Define a single-line arrow function that accepts a number and returns whether it is even or odd using modulo and the ternary operator, with tests for 6 and 7.
Discover how JavaScript is an object oriented language that uses objects as building blocks, including arrays and functions, with properties, methods, and dot notation access.
Learn how to create user defined objects in JavaScript using object literals and the object constructor, adding properties, methods, nested objects, and arrays to reduce program complexity.
Discover how objects combine data and functionality, using a user object with first name, last name, birth date, and methods like full name, increment age, and login check.
Understand how the this keyword refers to the invoking object or to the global object in JavaScript, and how the global object relates to the window and the global environment.
Use the delete operator to remove properties from objects and, with arrays, understand that deleting elements can create sparse arrays.
Discover how to access properties with square brackets in JavaScript, enabling dynamic property retrieval via variables, and build a formatted address from an object for display.
Learn that objects are passed by reference, not copied: variables point to the same object, so changes affect all references; create a separate copy by assigning to a new variable.
Explore how object prototypes power JavaScript inheritance by tracing prototype chains, how objects inherit properties from their prototypes, and how arrays and functions rely on their prototypes.
Define and extend prototypes in JavaScript with Object.create, then observe how changes affect all inheriting objects and how prototype chains form with object literals and constructors.
Explore constructor functions in JavaScript, the new keyword and this, prototypes, and how objects initialize and implicitly return, with car and question constructor examples.
Explore the class keyword and its relation to prototype inheritance in JavaScript, while preserving behavior from constructor functions. See how constructors and methods unite inside a class.
Create a game character object in three parts (object create, constructor, and class) with defaults for speed, strength, hit points, and a damage per second method.
Explore building a constructor function for a game character in JavaScript, using conditional property assignment for speed, strength, and hit points, with a prototype damage per second method.
Explore a class definition for a game character, set default prototype values for speed, strength, and hit points, and implement a damage per second method on the prototype.
Understand the document object model, or dom, as a live representation of HTML you can read and modify with JavaScript, using parent, child, and sibling relationships.
Learn to use browser devtools to inspect the DOM, navigate the Elements panel, and edit HTML and styles in real time.
Master the two-step DOM change process by selecting a DOM element with JavaScript and then updating its properties, such as color, through the element's style attribute.
Learn how to select DOM elements using dot syntax and other methods—by id, tag, class, and CSS selectors—and modify elements via the console, including image and link arrays.
Learn how to select DOM elements by ID, tag and class using document.getElementById, getElementsByTagName, and getElementsByClassName; IDs are unique, and you can manipulate styles and classes with loops and examples.
Learn how to inspect DOM nodes using the console.dir command to view a node's attributes, properties, and styles, and discover what you can change with JavaScript.
Learn how to select DOM elements using CSS selectors with querySelector and querySelectorAll, targeting by tag, id, class, and relationships like child and descendant.
Access and manipulate form elements using dot syntax or the get elements by name method, retrieving and setting values for inputs, radio buttons, and selects in a sample html form.
Explore how to traverse the DOM using parent, child, and sibling relationships, distinguish element and text nodes, and use node type, name, value, and attributes to manipulate content.
Traverse dom in modern browsers using first element child, last element child, and children to work with elements while avoiding text nodes, using next and previous element siblings to navigate.
Explore how to read and modify html attributes using dot notation and attribute methods, such as getAttribute, setAttribute, hasAttribute, and removeAttribute, with examples for src, href, class, and style.
Discover how the HTML5 class list API adds, removes, and toggles classes on a node while preserving existing ones. Use contains to check class presence and length to count classes.
Learn how to modify html content using inner html, outer html, and insert adjacent html, with the four insertion points and query selectors, plus practical examples.
Learn how to add new nodes to the DOM with createElement, createTextNode, appendChild, insertBefore, and insertAdjacentHTML, including creating text and setting attributes.
Apply dynamic DOM manipulation to populate a table from a data object using a fill table function, querying table headings and cells and pairing methods with descriptions.
Master the two-step process: select a DOM node and attach an event listener to respond to user actions like clicks and scrolls, using addEventListener or event properties.
Explore creating and wiring event handlers on a simple page, triggering h2 color changes on click and image swaps on mouseover, with multiple listeners and timed delays using setTimeout.
Learn how a ul listens for double click events to manage its li children using event delegation, filtering element nodes, and turning matching items green, ignoring text nodes.
Capture the event object in your event handler, inspect properties like altKey and coordinates, and use target versus currentTarget to apply dynamic styles.
Explore JavaScript events with a hands-on event reporter page, studying mouse move, click, and key down events and how to add, remove, and toggle listeners.
Create a three-page HTML course by wiring next and previous navigation with keyboard arrows and arrow clicks, using a pages array, window, location object, and location.assign to load pages.
present the exercise 12 solution, implementing next and previous page navigation with a page counter, a pages array, and location.assign, plus keyboard and arrow click handlers.
Explore jQuery, a widely used JavaScript library that streamlines DOM selection, content manipulation, event handling, and cross-browser compatibility via a single global function.
If you would like to read more about the evolution of JavaScript and the process that controls it, you can visit this great article by Axel Rauschmayer: http://2ality.com/2015/11/tc39-process.html.
Explore ECMAScript 2016's two main features—array includes for membership checks and the exponentiation operator for powers—plus real-world usage and cross-browser, node, and iOS support.
Explore ECMAScript 2017's padStart and padEnd for padding strings to a set length, returning new strings without altering the original, using custom or space padding.
Explore ECMAScript 2019 string methods trimStart and trimEnd, which return new strings with whitespace removed from the start or end, and note browser support like Edge's nonstandard naming.
In Learn Modern JavaScript: Getting Started, you are taught the fundamentals of JavaScript the right way. We won't skip topics. Some topics may seem more advanced, but that is because they are crucial to a complete grounding of JavaScript. Most importantly, you are taught the why, not just the what and how.
We cover all the necessary topics to get you started on your way to becoming a JavaScript programmer. This course will start with the basics and very quickly begins increasing your knowledge of JavaScript. With all the hands-on exercise, you will get plenty of time to practice.
JavaScript has changed and matured since its humble beginnings in 1995. One of the original goals of JavaScript, in those early years, was to make it easy for beginners. That goal has made it accessible for all types of people. However, this has also meant that JavaScript has been taught and learned incompletely by many. Not in this course!
This course contains 12 sections, over 115 different topics, over 13 hours of video tutorials, 12 exercises and everything you need for the proper grounding in JavaScript.
If you are ready to jump into the world of JavaScript or you want to add to your new found skills, this course is for you!