0% found this document useful (0 votes)
10 views

JS Challenges

Uploaded by

vikramstm0000
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

JS Challenges

Uploaded by

vikramstm0000
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

TABLE OF CONTENTS

00
01 Pre-Read Before
01 Numbers
02 String
03 Operators
04 Type Conversion
05 Maps
06 Sets
07 Arrays
08 Objects
09 Conditionals
10 Ternary
11 Loops
12
01 Regular Functions
13 Arrow Functions
14 Recursive Functions
15 Closure
16 Currying
17 Math
18 Date
19
01 Regex
20 Spread
21 Rest
22 Destructuring
23 Constructor Function
24 Prototype
25 Error Handling
26 Promises
27 Fetch API
28 Browser APIs
29 Timer Functions
30 DOM - CRUD Elements
31 Events
1234

QUESTIONS LINK

Convert a string to a valid number

Round a number to the nearest integer

Working with Large Numbers: Formatting and Display

Optimizing Price Calculation with Bulk Discount

Calculating the Time Remaining for a Sale

Generating a Random Number in a Range

Converting a Number to Binary

Calculate Electricity Bill

02 02
QUESTIONS LINK

Valid Password

Count word Occurance

Keyword check

Valid email

cleanUp extra spaces

Convert URLs to Links

URL Generation

File Extension validation

Case-Insensitive Search

03 03
QUESTIONS LINK

Calculate Total Price with Tax

Convert Fahrenheit to Celsius

Calculate Tip

Calculate Age

Calculate Simple Interest

Calculate Annual Salary from Hourly Wage

Calculate Discounted Price

Calculate Time Difference in Hours

Calculate Distance Between

Calculate Average Speed

04 04
QUESTIONS LINK

Age Validation

Phone Number Validation

API Response

Storing Objects in Local Storage

Converting a Date Object to String

Displaying a List of Users

05 05
QUESTIONS LINK

Find Events Within a Latitude and Longitude Range

Group Events by City

Event Planning

Check if a City is in the Northern Hemisphere

Count Events by Date

Find Events Happening Now

06 06
QUESTIONS LINK

Add Unique Elements to a Set

Remove an Element from a Set

Check if a Set Contains an Element

Count Elements in a Set

Convert a Set to an Array

Find the Union of Two Sets

Find the Intersection of Two Sets

Find the diffrence between two sets

07 07
QUESTIONS LINK

Search Bar Suggestions

Grouping Blog Posts by Categories

Sorting Products

Shopping Cart Total

Tag Frequency

Finding Common Wishlist Items

Removing Duplicate Emails

Highlighting Most Searched Products

Chunking User Data

Filtering Products by Price

08 08
QUESTIONS LINK

User Profile management

Shopping cart System

Storing Contact Information

Storing a Simple Book

Storing Favorite Color

Simple Counter

Weather App (Data Representation)

Employee Directory System

Task manangement (To do list)

09 09
QUESTIONS LINK

Access Control System

Checking if a Number is Positive, Negative, or Zero

Determining Discount Based on Age or Membership

Form Validation

Checking if a User is Logged In

Checking if a Day is a Weekend

Temperature-Based Clothing Advice

Evaluating Exam Grades

Checking Weather for an Outdoor Activity

Simple Voting Eligibility Check

10 10
QUESTIONS LINK

Determine Pass or Fail

Check Eligibility for Voting

Check User Login Status

Button State Based on Form Completion

Display Product Availability

Dynamic Navigation Based on Role

Session Timeout Warning

Display File Upload Status

Determine Shipping Cost

Password Strength Checker

11 11
QUESTIONS LINK

Calculating Total Price of Items in a Cart

quiz result Score calculation

Filter Products Based on Availability and Price

Generating a List of Random Numbers

Counting Down Timer (Countdown)

Summing Numbers in an Array

12 12
QUESTIONS LINK

API Rate Limiting

Inventory Stock Checker

Secure Password Generator

Email Obfuscator

Fraud Detection

Product Recommendation Engine

Data Sanitizer

Coupon Expiry Checker

Booking Slot Validator

Download Speed Calculator

13 13
QUESTIONS LINK

Sum of Two Numbers

Find the Square of a Number

Check if a Number is Even

Filter Odd Numbers from an Array

Convert Celsius to Fahrenheit

Enumerate a Map

14 14
QUESTIONS LINK

Render Navigation menu

Parsing Nested Comments

Array Traversal

Generating Combinations

15 15
QUESTIONS LINK

User Session Management

Real-Time Analytics Tracker

Dropdown State Manager

Secure Payment Manager

Dynamic Permission System

Notification Manager

Dynamic Form Field Validation

Shopping Cart Manager

Auto-Increment ID Generator

Live Chat Manager

16 16
QUESTIONS LINK

Add Two Numbers

Multiply Three Numbers

Calculate Power

String Concatenation

Subtract Two Numbers

Calculate Final Price After Discount and Tax

17 17
QUESTIONS LINK

Find the Factorial of a Number

Find the Greatest Common Divisor (GCD)

Calculate the Square Root of a Number

Find the Power of a Number

Check if a Number is Prime

Find the Least Common Multiple (LCM)

18 18
QUESTIONS LINK

Get Current Date and Time

Get Specific Date and Time

Get Current Year, Month, Date

Format Date as a String

Get Day of the Week

Add Days to a Date

Subtract Days from a Date

Compare Dates

Convert Date to Timestamp (Unix Time)

Get Time Difference Between Two Dates

19 19
QUESTIONS LINK

Check if an Email is Valid

Find Phone Numbers in Text

Get Query Parameters from a Link

Check if a Date is in the Right Format

Validate an IP Address

Find All Hashtags in a Text

Find HTML Tags

Extract the Domain Name from a URL

Find Hex Color Codes

20 20
QUESTIONS LINK

Merge Two Arrays

Clone an Object

Add Elements to an Array

Combine Two Objects

Remove Duplicates from an Array

Split an Object into Two Objects

21 21
QUESTIONS LINK

Sum of Numbers

Filter Even Numbers

Group Students by Class

Dynamic Product Builder

Exclude Specific Keys from Object

Group Arguments by Type

Combine Multiple Sets of Data

Extract Specific Items from Array

Dynamic Object Cloner

Aggregate Scores for Users

22 22
QUESTIONS LINK

Extract Values from an Array

Swap Two Variables

Extract Properties from an Object

Default Values in Destructuring

Nested Object Destructuring

Rest Operator in Array Destructuring

Function Parameter Destructuring

23 23
QUESTIONS LINK

ChatMessage Constructor

Real-Time Voting System

Multi-Language Translator

Notification Constructor with Priority

Multi-Level Dropdown Menu

24 24
QUESTIONS LINK

Vehical Management System

Creating a Base Shape Class

User Authentication System

Timer System

Inventory System

Creating a Simple Calculator

25 25
QUESTIONS LINK

Handle Division by Zero

Handle Timeout in API Requests

Validate URL Format

Catch DOM Manipulation Errors

Validate Form Inputs

Prevent Infinite Loops

Handle Cookie Errors

Validate Email Format

Handle Null Values

Validate Array Index

26 26
QUESTIONS LINK

Quiz Timeout

Promise Chain Calculator

Online Food Order Status

Flight Booking System

File Upload Simulation

Online Movie Streaming

27 27
QUESTIONS LINK

Fetch Data from API

Fetch with Query Parameters

Cancel Fetch Request

Fetch and Update DOM

Fetch and Cache Data

28 28
QUESTIONS LINK

Save User Preferences with LocalStorage

Simple Geolocation Example

Show Notifications to Users

Clipboard Copy Functionality

Save User Data in sessionStorage

Change URL Without Page Reload (History API)

Simple Countdown Timer Using setInterval

Alert on Window Resize

Detect If User is Offline/Online

29 29
QUESTIONS LINK

Auto-Save Function

Slideshow (Image Carousel)

Displaying Notifications (Delayed Alert)

Simple Random Number Generator (with setInterval)

Simple Stopwatch

Show a Welcome Message After a Delaya

Counting Seconds

30 30
QUESTIONS LINK

Add a New Item to a List

Delete All Items from a List

Edit a Specific List Item

Live Search with Dynamic Results

Collapsible Sidebar

Auto-Save Form Data

Copy to Clipboard

Accordion Menu

Add Multiple Items to a List

Replace All List Items

31 31
QUESTIONS LINK

Creating a Button with a Click Event Listener in JavaScript

Mouse Hover Event - Change Color

Form Submit Event - Prevent Default

Keydown Event - Detect Keyboard Input

Change Event - Input Field Validation

Scroll Event - Show Scroll Progress

Resize Event - Adjust Layout on Window Resize

Double Click Event - Show Alert on Double Click

Focus Event - Highlight Input Field

Mouse Move Event - Show Coordinates

32 32

You might also like