JavaScript

JavaScript Practice Exercise

Since JavaScript is one of the popular languages for coding, learners should practice it by writing some code. These beginner-level level JavaScript Practice Exercise questions help them learn the language.

Programmingempire

JavaScript Practice Exercise

  1. Use JavaScript to display pop up boxes (alert box, an alert box with line breaks, confirm box, prompt box)
  2. Use JavaScript to call a function with an argument that returns a value.
  3. Create a web page to demonstrate Java Script events.
  4. Create a web page to demonstrate Java Script Exception handling.    
  5. Write a JavaScript to accept your name and display it.
  6. Write a JavaScript code to accept 10 numbers and check how many are +ive,  -ive, and zero.
  7. Write a Program in JavaScript to find the factorial of a number between 1 to 10

       Output should be like as given below: –

Factorial   of   1 is: 1

Factorial of    2 is:  2

:::::::::::::::::::::::::

::::::::::::::::::::::::::

::::::::::::::::::::::::::

factorial  of  10 is :   

Perform validation on some field against a specified range (onchange event).


Further Reading

Evolution of JavaScript from ES1 to ES2020

Introduction to HTML DOM Methods in JavaScript

JavaScript Practice Exercise

Understanding Document Object Model (DOM) in JavaScript

Understanding JSON Web Tokens

Understanding HTTP Requests and Responses

What is Asynchronous JavaScript?

JavaScript Code for Event Handling

Callback Functions in JavaScript

Arrow Functions in JavaScript

JavaScript Code Examples

Show or Hide TextBox when Selection Changed in JavaScript

Changing Style of HTML Elements using getElementsByClassName() Method

Creating Classes in JavaScript

programmingempire

You may also like...