Home

Code Snippets Events
In this code snippet, we'll learn about events in Javascript. We can add and subsequently remove event listeners(of different types: click, change, mouseenter, ...) to
JS Code Snippets DOM Manipulation
In this code snippet, we'll learn how to manipulate the DOM with Javascript. When you open up a web page
JS Code Snippets Closures
In this code snippet, we'll learn about closures in Javascript. A closure is simply a function within a function. With this,
JS Code Snippets Arrow Function
In this code snippet, we'll learn how to use arrow functions in Javascript. Arrow functions are nothing more than "syntactic
JS Code Snippets Error Handling
In this code snippet, we’ll learn how to handle errors in Javascript. You can throw errors by using the throw
JS Code Snippets Classes
In this code snippet, we'll learn about classes in Javascript. Classes were introduced ES6. They work the same way they do in
JS Code Snippets Bitwise Operators
In this code snippet, we'll learn how to use the bitwise operators in Javascript. Bitwise operators allow us to work
JS Code Snippets Data Types And Conversions
In this code snippet, we'll learn how to check and convert data types in Javascript.
JS Code Snippets Working With Numbers
In this code snippet, we'll check out some of the Math class functions in Javascript. More information about all the
JS Code Snippets Sorting And Reversing An Array
In this code snippet, we'll learn how to sort and reverse arrays in Javascript.