Expert Developer JavaScript Question: Download Expert JavaScript Developer PDF

What is the use of Void(0)?

Tweet Share WhatsApp

Answer:

Void(0) is used to prevent the page from refreshing and parameter "zero" is passed while calling.

Void(0) is used to call another method without refreshing the page.

Download Expert JavaScript Developer PDF Read All 150 Expert JavaScript Developer Questions
Previous QuestionNext Question
How can you convert the string of any base to integer in JavaScript?Mention what is the disadvantage of using innerHTML in JavaScript?