Home

Code Snippets AsyncAwait And Promises
In this code snippet, we’ll learn about async/await and promises in Javascript. Promises allow us to execute code asynchronously. When
Code Snippets Callbacks
In this code snippet, we'll learn about callbacks in Javascript. Callbacks are nothing more than function pointers passed as an
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.