Skip to content

A simple demonstration of asynchronous functions, promises, and callbacks using HTML, CSS, and JavaScript.

Notifications You must be signed in to change notification settings

Subrat29/Hackerman-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackman Program

A simple demonstration of asynchronous functions, promises, and callbacks using HTML, CSS, and JavaScript.

Table of Contents

Introduction

The Hackman Program is a practice project showcasing the use of asynchronous functions, promises, and callbacks in JavaScript. The program simulates a hacking sequence, demonstrating the flow of asynchronous operations to achieve a specific task.

Demo

hackerman Demo

Features

  • Asynchronous Functions: Utilizes asynchronous functions to simulate time-delayed tasks.
  • Promises: Implements promises to handle asynchronous operations in a sequential manner.
  • Interactive Display: Updates an HTML element to display each step of the hacking process.

Code Overview

The code consists of a series of asynchronous functions (p1 to p5) simulating various stages of a hacking sequence. The main function, hackerman, orchestrates these functions using the await keyword to ensure a sequential flow.

// Code snippet for illustration purposes. See full code in hackman.js

const hackerman = async () => {
    let a = await p1();
    console.log(a);

    let b = await p2();
    console.log(b);

    let c = await p3();
    console.log(c);

    let d = await p4();
    console.log(d);

    let e = await p5();
    console.log(e);
}

hackerman();

Usage

1. Clone the repository:

git clone https://github.com/Subrat29/Hackman-Program.git
cd Hackman-Program

2. Open the index.html file in your preferred web browser to observe the hacking sequence.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Make sure to follow the contributing guidelines.

About

A simple demonstration of asynchronous functions, promises, and callbacks using HTML, CSS, and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published