JavaScript - Exercises, Practice, Solution
What is JavaScript?
JavaScript is a cross-platform, object-oriented scripting language. It is a small and lightweight language. Inside a host environment ( a web browser), JavaScript can be connected to the objects of its environment to provide programmatic control over them.
JavaScript contains a standard library of objects, such as Array, Date, and Math, and a core set of language elements such as operators, control structures, and statements. Core JavaScript can be extended for a variety of purposes by supplementing it with additional objects.
The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with JavaScript. Hope, these exercises help you to improve your JavaScript coding skills. Currently following sections are available, we are working hard to add more exercises. Happy Coding!
Latest Exercises : Object Oriented Programming JavaScript Error Handling JavaScript Event Handling
List of JavaScript Exercises :
- JavaScript Basic [ 150 Exercises with Solution ]
- JavaScript Fundamental (ES6 version) Part-I [ 150 Exercises with Solution ]
- JavaScript Fundamental (ES6 version) Part-II [ 116 Exercises with Solution ]
- JavaScript Error Handling [ 13 Exercises with Solution ]
- JavaScript Functions [ 29 Exercises with Solution ]
- JavaScript Recursion [ 13 Exercises with Solution ]
- JavaScript Conditional Statements and loops [ 12 Exercises with Solution ]
- JavaScript Event Handling [ 10 exercises with solution ]
- JavaScript Asynchronous Programming [ 9 exercises with solution ]
- JavaScript Object-Oriented Programming [ 12 exercises with solution ]
- JavaScript Math [ 114 Exercises with Solution ]
- JavaScript Array [ 53 Exercises with Solution ]
- JavaScript Stack [35 exercises with solution]
- JavaScript Linked List [35 exercises with solution]
- JavaScript Date [ 57 Exercises with Solution ]
- JavaScript String [ 63 Exercises with Solution ]
- JavaScript Bit Manipulation [ 15 Exercises with Solution ]
- JavaScript Validation with Regular expression [ 21 Exercises with Solution ]
- JavaScript HTML DOM [ 13 Exercises with Solution ]
- JavaScript Drawing [ 6 Exercises with Solution ]
- JavaScript Object [ 18 Exercises with Solution ]
- JavaScript Basic Validation without Regular expression [10 Exercises with Solution ]
- JavaScript Sorting Algorithm [31 Exercises with Solution ]
- JavaScript Searching Algorithm [5 Exercises with Solution ]
More to Come !
Do not submit any solution of the above exercises at here, if you want to contribute go to the appropriate exercise page.
Note : Since JavaScript is a loosely-typed, dynamic and expressive language, you may accomplish the same task in various ways. Therefore the ways (solution of the exercises) described here are not the only ways to do stuff. Rather, it would be great, if this helps you anyway to choose your own methods.
[ Want to contribute to JavaScript exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/javascript-exercises/index.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics