JavaScript Tutorials

CA Projects

CA1

USER REGISTRATION FORM:
Use ReactJS to build a user registration form with validation.

CA1

TO DO LIST:
Use ReactJS to build a to-do list app, with options to add, view and remove list items.

CA2

See this web page

Please submit to Moodle on or before 22 December 2022.

JavaScript Fundamentals

Creating an account for web hosting on GitHub

1: Adding JavaScript to a Web Page

Efficiently adding JavaScript code to a web page, and working with the JavaScript Console in your web browser’s Developer Tools.

View Tutorial
Creating an account for web hosting on GitHub

2: Objects, Properties, and Methods

Exploring the navigator (web browser) object, the window object, the location (web address) object, and the document (web page) object.

View Tutorial
Creating an account for web hosting on GitHub

3: Variable Types in JavaScript

Working with string, numeric and boolean variables, assigning values with the const and let keywords, and using the typeof opertor to investigate a variable’s type.

View Tutorial
Creating an account for web hosting on GitHub

4: Working with the DOM

Understanding the Document Object Model (DOM), and accessing elements in a web page that have or do not have a unique ID.

View Tutorial
Creating an account for web hosting on GitHub

5: Working with Strings

Working with string index positions and length, joining and slicing strings, querying strings, and replacing characters.

View Tutorial
Installing and customising Visual Studio Code for web designers

6: Working with Numbers

Performing arithmetic, and using Math object methods for finding max and min values, and generating random numbers.

View Tutorial
 

Functions in JavaScript

portfolio all the light

8: Function Declarations

Creating function declarations, passing values to them, and returning a value from a function back to the calling code.

View Tutorial
portfolio all the light

9: Anonymous Functions

Creating a function expression whose value is stored in a variable. And working with a type of an function expression called an anonymous function.

View Tutorial
portfolio all the light

10: Arrow Functions

Creating arrow functions, passing values to them, and writing short-hand single-statement arrow functions with implicit returns to the calling code.

View Tutorial

Functions and Events

portfolio all the light

11: Event Handlers

Invoking functions using event handlers in the HTML file, or with anonymous or arrow functions in the JavaScript code.

View Tutorial
portfolio all the light

12: Event Listeners

Invoking functions with event listeners, using external function declarations or internal anonymous or arrow functions.

View Tutorial
 

Loops and Arrays

portfolio all the light

15: Working with Loops

Creating a for loop with a counter variable, a starting value, a loop condition, and an increment or decrement operator.

View Tutorial
portfolio all the light

16: Working with Arrays

Creating arrays in JavaScript, populating them with elements, and reading and updating array elements

View Tutorial
portfolio all the light

17: Arrays and Loops

Using the JavsScript for and forEach loops for accessing and updating the elements of an array,

View Tutorial
portfolio all the light

Data Tables

Creating and styling HTML tables, adding and deleting table rows with JavaScript, and populating a table from an array of objects.

View Tutorial
portfolio all the light

The Fetch API

Using the Promise and Response objects of the Fetch API and get plain-text and JSON formatted data from remote web servers.

View Tutorial

 

Projects

portfolio all the light

Counter

An increment and decrement counter that changes the colour of the number displayed on the web page.

View Project
portfolio all the light

Colours

Uses an array of hexadecimal values to randomly generate a background colour for the web page.

View Project
portfolio all the light

Data Tables

Populates an HTML table with data stored in an array. Includes the option to remove data items.

View Project
portfolio all the light

Random Quote Generator

Uses the Fetch API to retrieve a randomly-choosen selection of ten inspiring quotations.

View Project
portfolio all the light

Movies Listings

Uses the Fetch API to retrieve a searchable list of movie titles and images from the Internet Movie Database.

View Project

 

React

portfolio all the light

1: React Quick Start

Running React code using libraries imported from a CDN and viewing the output with the VSCode Live Server extension.

View Tutorial
portfolio all the light

2: Working with Components

Understand React component syntax, create and render functional components, and compose them in parent-child relationships.

View Tutorial
portfolio all the light

3: Working with JSX

Understand JSX syntax and how it extends JavaScript to simplify the creation of components in React.

View Tutorial
portfolio all the light

4: React with NodeJS

Installing the Nodejs Version Manager (nvm) and installing NodeJS.

View Tutorial
portfolio all the light

5: Create React App

Setting up a modern development environment for building React apps.

View Tutorial
portfolio all the light

6: Props and Components

Passing data from parent to child components in a React app.

View Tutorial
portfolio all the light

7: State and Hooks

How React handles dynamic data with the concepts of state and hooks.

View Tutorial
portfolio all the light

8: Project: To do list

Creating a basic task list app that demonstrates the main features of React.

View Project
portfolio all the light

9: Project: User registration form

Creating a basic task list app that demonstrates the main features of React.

View Project
portfolio all the light

10: Project: AI Image Generator

A web app built with OpenAI and the DALL-E that generates images based on user-entered text.

View Project