JavaScript and Web Application Logic
Learn JavaScript by building an online product store that runs in the browser and talks to a Node.js web server.
Course overview
Build a practical foundation in JavaScript during this four-day instructor-led course. Lectures and labs follow a single scenario: a company that sells products on its website. Start with JavaScript basics in the browser console, organize product data with functions, arrays, and objects, bring a store page to life with the DOM, events, and forms, then connect it to a Node.js web server that serves product and order data.
Course coverage
Progress from your first line of JavaScript to an interactive store page backed by a Node.js server.
- 01 JavaScript in the browser: console, dev tools, VS Code, and script tags
- 02 Variables with let and const, data types, and template literals
- 03 Operators, comparisons, truthy and falsy, if/else, and switch
- 04 Loops, functions, arrow functions, parameters, and scope
- 05 Arrays and objects: map, filter, reduce, destructuring, and spread
- 06 The DOM: selecting, updating, and creating page elements
- 07 Events, forms, input validation, and localStorage
- 08 Errors, classes, and ES modules with import and export
- 09 Asynchronous JavaScript: promises, async/await, fetch, and JSON
- 10 Node.js, npm, and an Express web server with API routes
Participants will learn to
- Write and debug JavaScript with the browser console and dev tools.
- Use variables, data types, operators, and conditions.
- Write reusable functions and repeat tasks with loops.
- Model products and carts with arrays and objects.
- Update web pages dynamically with the DOM.
- Respond to clicks and validate form input.
- Request and send JSON data with fetch and async/await.
- Run a Node.js web server that serves pages and API data.
Four-day course outline
Day 1 - JavaScript fundamentals: Set up VS Code and use the browser console and dev tools. Add scripts to a web page, declare variables with let and const, and work with numbers, strings, booleans, null, and undefined. Use template literals, arithmetic and comparison operators, truthy and falsy values, if/else, switch, and the ternary operator. Lab: calculate product prices, sales tax, discounts, and shipping costs.
Day 2 - Functions, arrays, and objects: Repeat tasks with for, while, and for...of loops. Write function declarations and arrow functions with parameters, default values, and return values, and understand scope. Store data in arrays and objects, and use map, filter, find, sort, and reduce with destructuring and the spread operator. Lab: build a product catalog, filter by category and price, and total a shopping cart.
Day 3 - The DOM, events, and forms: Select and update page elements, create product cards from data, and change styles and classes. Handle click, input, and submit events, validate a checkout form, and save the cart with localStorage. Handle errors with try and catch, and organize code with classes and ES modules. Lab: make the store page interactive with add-to-cart buttons and a live cart summary.
Day 4 - Async JavaScript and a Node.js web server: Understand the event loop, promises, and async/await. Work with JSON and fetch data from APIs. Install Node.js and npm, create an Express web server, serve static files, and build GET and POST routes for products and orders. Final lab: connect the store page to the Node.js server to load products and submit orders.
Format and audience
For: New programmers, web designers, analysts, and technical staff who want a practical introduction to JavaScript and web application logic.
Prerequisites: Basic computer skills; familiarity with HTML and CSS is helpful but not required. Participants need a computer with a modern web browser, VS Code, and the current Node.js LTS release installed.
How it works: Four days of instructor-led lectures, demonstrations, and hands-on labs built around an online product store. Contact us to discuss dates and virtual or onsite delivery.
Explore the course
Request a quote for the four-day JavaScript and Web Application Logic course and discuss your team's training needs.