
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
811 Views
For this, call a function on button click.ExampleFollowing is the code − Live Demo Document ClickMeToCopyURL https://www.tutorialspoint.com/index/ function demoForCopyURL(e) { event.preventDefault(); var ... Read More

AmitDiwan
2K+ Views
To remove the next element in jQuery, use the remove().ExampleFollowing is the code − Live Demo Document cancel(X) Demo ... Read More

AmitDiwan
237 Views
Yes, the not not operator is the reverse process of not operator. If any value is true then single ! (not) will return false and !! will return opposite value (true).The not operator −var flag=true; console.log(!flag);The not not operator −var flag=true; console.log(!!flag);ExampleFollowing is the code −var flag=true; console.log("The result of ... Read More

AmitDiwan
262 Views
The colon (:) can be used when you want to define the property to an object while equal (=) can be used when you want to assign a value to a variable.ExampleFollowing is the code −var studentDetails = { "studentId": 101, "studentName": "John", "studentSubjectName": "Javascript", "studentCountryName": ... Read More

AmitDiwan
261 Views
To remove child elements, set the innerHTML to ‘’.ExampleFollowing is the code − Document Javascript MySQL Remove the items remove.onclick = () => { const element = document.getElementById("removeAllChildElements"); ... Read More

AmitDiwan
133 Views
Use the map() function correctly to save elements.ExampleFollowing is the code −const addIndexValueToArrayElement = function (arrObject) { const updatedArrayValue = []; arrObject.forEach(function (ob) { const mapValue = ob.map(function (value) { return value + arrObject.indexOf(ob) }) ... Read More

AmitDiwan
149 Views
To repeat string, you can use Array() along with join().ExampleFollowing is the code − Document String.prototype.counter = function (value) { return new Array(value + 1).join(this); } console.log("The repeat string".counter(5)); To run ... Read More

AmitDiwan
75 Views
If you will use equal operator(=) in if condition the if block will always be executed.You need to use == operator or === .ExampleFollowing is the code −var details = [ { id: 10001, name: "John" }, { ... Read More

AmitDiwan
2K+ Views
To get the number of true/ false values in an array, the code is as follows −var obj = [ { isMarried: true }, { isMarried: false }, { isMarried: true }, { ... Read More

AmitDiwan
477 Views
To fetch a specific record, use find() with some condition.ExampleFollowing is the code −var obj=[ { studentId:101, studentName:"John" }, { studentId:102, studentName:"Bob" }, { studentId:103, studentName:"David" ... Read More