Skip to content

zishaxn/Basic-JavaScript-Programs

Repository files navigation

JavaScript Learning Projects

Welcome to the JavaScript Learning Projects repository! This repository contains a collection of JavaScript programs that are helping me to learn JavaScript in a practical and hands-on way. Each program focuses on specific concepts and features of JavaScript while providing a fun and interactive learning experience.

Programs

1. move-ball

A simple web page featuring a ball-shaped element at the centre. This program has the most basic function: to move an element on the viewport. In this case, a ball should stay within the viewport's height and width.

2. Counter-2

This program prompts the user to input a number between 1 and 99999. After entering the number, a countdown timer starts, displaying the remaining time in seconds. This exercise covers input validation, interval-based operations, and updating the DOM.

3. Change-color-shape

This program demonstrates how to change the styling properties of an element, such as colour and shape, using JavaScript. Here, we have used the built-in random function of JavaScript to generate random colours.

4. click-counter

There will be a button on the page and clicking on it will show you how many times the user has clicked, and it will also change the colour of the button container.

5. Catch Me

There will be a ball on the viewport at a random position and whenever the user hovers the mouse pointer over the ball it will change its position randomly.

6. To-Do-List

A simple to-do list, where the user can add, delete and mark as done to a task.

7. Calculator

A fully functional calculator.

8. Ping-Pong Game

A single-player ping pong game.

Usage

Each program is contained in its own directory, complete with HTML, CSS, and JavaScript files. You can explore and interact with each project individually by opening the HTML files in a web browser. Feel free to examine the code to understand how each program is implemented and experiment with modifications.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published