When you’re working with JavaScript, sometimes you need to access query string parameters in your script.
Check if the given year is a leap year
Use new Date(), setting the date to February 29th of the given year. Use Date.prototype.getMonth() to check if the month is equal to 1.
JavaScript Functions Explained
JavaScript functions are reusable blocks of code that perform a specific task, taking some form of input and returning an output.
Submit a form with Ajax
The following function submits the data of formEle to the back-end using an Ajax request
Get and Set Classes On An Element
Get all of the classes on an element as a string, add a class or classes, or completely replace or remove all classes.
Check if an Object Is Empty
ere are some different methods that you could use to check if an object is empty in modern browsers that support the ES5 edition of JavaScript.
JavaScript Variables Explained
Variables are named values and can store any type of JavaScript value.
Strip HTML from a given text
Here are 2 ways to strip HTML code from a given text.
Add, remove, toggle, and check for the presence of a class
Here are some handy, simple ways to manipulate CSS classes.
Remove a Character From a String in JavaScript
How can you remove a character from a string in JavaScript? Here are a few different ways to do this.










