Category: JavaScript
-
How to Use Jest for JavaScript Unit Testing
Read more: How to Use Jest for JavaScript Unit TestingJest is a JavaScript testing framework maintained by Meta. It works with Bable, TypeScript, Node.js, React, and more. In this case, we’re going to set up Jest and test a…
-
How to Traverse the DOM with JavaScript
Read more: How to Traverse the DOM with JavaScriptThe DOM is like a tree of elements. For example, you have some nodes that are nested inside each other, and they kind of branch off. A node nested inside…
-
How to Check DOM nodeTypes & nodeNames
Read more: How to Check DOM nodeTypes & nodeNamesThere are 12 different node types and each node may or may not have its own children of different node types. Node types can be thought of as communication protocols…
-
How to Get Nodes from & Query the DOM with JavaScript
Read more: How to Get Nodes from & Query the DOM with JavaScriptYou can think of The Document Object Model (DOM) as a tree with branches of nodes. The DOM is what the browser creates to display the content on your screen.…
-
7 Useful JavaScript Array and Object Methods
Read more: 7 Useful JavaScript Array and Object MethodsToday we’re taking a look at some useful array and object methods for JavaScript. Throughout this entire post, we’re going to be using this object named books of, you guessed…
-
Sort JavaScript Arrays Ascending & Descending
Read more: Sort JavaScript Arrays Ascending & DescendingBy default, JavaScript has a sort function that takes the form of yourArrayName.sort( ) built-in, but to sort JavaScript arrays ascending and descending, you need a custom compare function to…





