Sometimes you may need to check for hash in URL using JavaScript. Here are the steps to do it.
JavaScript
How to Load Local JSON File
How to Add 30 Minutes to JS Date Object
How to Measure Time Taken by JS Function to Execute
Often web developers need to measure execution time in JS. Here is how to measure time taken by JS function to execute.
How to Check if String Starts With Another String in JavaScript
Sometimes you may need to check if string starts with another string in JavaScript. Here are the steps to do so.
How to Check if Variable is Undefined in JavaScript
How to Detect Invalid Date in JavaScript
Sometimes you may need to check if a date is valid or not in JavaScript. Here is how to detect invalid date in JavaScript.
How to Parse URL into Hostname & Pathname in JS
Sometimes you may need to split URL into hostname and pathname in JavaScript. Here is how to parse URL into hostname & pathname in JS.
How to Remove Element By Id in JS
How to Smooth Scroll on Clicking Links
Sometimes you may need to smooth scroll on clicking links on web pages. Here is how to do this using JavaScript and jQuery.