VoidOperator-2

 

It means it’ll do nothing, this void function will prevent the default behaviour of anchor tag.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <a href="javascript:void(0);"> Click here to do nothing </a> </body> </html>
Output