
Learn how to use external JavaScript by placing functions in a separate file, linking it with a script tag and the src attribute for easier maintenance and faster loads.
Learn how JavaScript constants fix values like numbers and strings, see how the browser outputs results, and observe how changing a constant alters the output.
Explore how JavaScript variables act as named containers that store numbers and strings, using X, Y, and Z as examples. Learn to declare unique identifiers and output results with getElementById.
Understand the JavaScript assignment operator, where the equal sign assigns the right-hand value to the left variable. See how numbers and strings interact when concatenating in code and browser preview.
Learn how JavaScript strings store text, use single and double quotes, handle quotes inside strings, and output variables in a browser with practical examples of line breaks and apostrophes.
Learn to round decimals to the nearest integer with the Math.round function, using 15.4 and 15.6, and explore rounding down with Math.floor and rounding up with Math.ceil.
Change array elements by index to update values, such as turning the first element from Apple to Kiwi, and delete elements to create an empty space, then save and preview.
Learn how the JavaScript splice method adds multiple items to an array, selects the insert position, and controls removals, illustrated by inserting lemon and banana after orange.
Learn to sort a JavaScript array alphabetically using the sort method with a sample cars array (Volvo, Acura, Honda, Lexus), then reverse the order with the reverse method.
Explore JavaScript comparison operators, learning how equal to and not equal behave with a variable set to six, using getElementById to output true or false in the browser.
Explore how the JavaScript for-in loop traverses an object's properties, demonstrated with a person object containing first name, last name, and age, and outputs each item in a web browser.
Learn how JavaScript events drive HTML behavior, including click, mouseover, mouseout, keydown, and document load, with a button that displays the current date and time via innerHTML.
Learn to create a simple background color changer with JavaScript by selecting a random hex color from an eight-color array and applying it to the page on each refresh.
Extract fetch logic into a reusable fetcher with a base URL, import it, and fetch categories and products with async/await in a useEffect to update state and handle errors.
Improve the fetch API call by checking the response status and throwing an error for non-ok responses, such as a 404 on a wrong URL, then catch errors.
Install react router version six, import and wrap the app in the browser router, and define routes for home, checkout, basket, and product detail pages to enable client-side navigation.
Fix React key warnings when rendering product lists and category features by adding unique keys (product id or index for string features) in a custom React e-commerce site.
Create a dynamic product detail view using React Router: link product titles, implement a view product button with useNavigate to /products/:id, and define routes for basket and checkout.
Rework the product detail page into a three-column layout that displays image, title, specs, price, stock, and description using product data, and prepare styling with React styled components.
Explore how styled components encapsulate CSS inside React components, install and import the library, and build dynamic, reusable styles using props and extending styles for product detail pages.
Learn to use styled components to separate CSS from markup, create a full-width product description across a three-column grid, and fix routing to preserve header and footer layouts.
Learn how to render raw HTML in React safely with dangerouslySetInnerHTML, using a function to return { __html: ... } and understanding React's protection against HTML injection.
Implement basket functionality by pulling cart items from context, rendering them with map, linking titles to products, and adding quantity, price, and delete controls.
Implement a live basket total in a React e-commerce site by using reduce to sum price times quantity, render the total, and add header icons with home and basket links.
Learn how local storage and session storage keep a shopping cart persistent across page refreshes and tabs by serializing cart items and updating storage with setItem and getItem.
Set up a top search bar in a React app to update URL parameters and display matching products in a dedicated results area, with routing to a search page.
Learn how to validate a checkout form by turning inputs into controlled components with useState, handling onChange and onSubmit, and applying browser validation with required attributes.
This course takes you step-by-step through the process of building a fully functional calculator in React. React, also known as React JS, is a powerful JavaScript library used for building custom, interactive user interfaces using UI components. Some of the most well known examples of organizations using React for their front-end include Netflix, Facebook, and Airbnb. Developed and maintained by Meta along with a community of independent developers, React remains free and open-source. React is a component based library built entirely on JavaScript, which makes it perfect for designing complex UI’s. With React, developers can build encapsulated components that efficiently manage their own state and render UI updates specifically when data changes. For example, think of the automated content refresh feature you see on a twitter feed, or facebook like button. Here the state of the UI component changes on the page, without having to manually refresh when the data is updated. This is just one small, yet powerful feature of React.
Through a complete hands-on project, this course will teach you all the fundamental principles of React that you must know to become a proficient React developer. We start right from the basics, including the tools needed to get started. From there we dive into JSX, functional components, props, callbacks, and various OnClick events. By this stage, the calculator will have a complete visual display, coupled with functional arithmetic operations. Students then move on to passing parameters in Callback functions, using the React State Hook, and debugging.
In addition to the hands-on React module, we also offer a comprehensive overview of JavaScript for those who need a refresher. Here we start with introducing students to the document object model (DOM) which defines the logical structure of HTML documents. From there we dive into JavaScript to demonstrate various methods in which DOM elements can be manipulated to add interactivity to static components. We start right from the basics, which includes JavaScript placement, and data output. From there we move on to variable declaration, arithmetic operations, operator precedence, data types, and objects. Once the foundations are covered, we move on to more complex operations using Arrays, Conditional Statements, JavaScript comparison operators, booleans and loops. Here students will learn to unleash the true power of JavaScript to render different outcomes based on user interaction. We will explore the use of functions to efficiently handle repetitive tasks and JavaScript events to handle output based on actions and occurrences. The section will conclude with a hands-on project where students will implement their knowledge to build a web based photo gallery and background color changer.