JavaScript String Methods—A Complete Guide (Updated 2023)

String is one of the fundamental data types of JavaScript. Every application has to do some string processing at some point. String handling usually involves finding length, checking if a character exists, splitting the string based on a separator, and so on. These operations are so common, that JavaScript includes ready-made logic for carrying out […]

JavaScript String Methods—A Complete Guide (Updated 2023) Read More »

What Is “javascript:void(0)”—A Complete Guide (Examples)

You may have encountered javascript:void(0) in an HTML document as a href attribute like this: A common reason why developers use javascript:void(0) trick is to prevent the page from reloading when clicking a link. This comprehensive guide teaches you: Speaking of examples, I think the best way to learn what javascript:void(0) does is by taking

What Is “javascript:void(0)”—A Complete Guide (Examples) Read More »