Sling Academy
Home/JavaScript/Page 86

JavaScript

JavaScript: 4 Ways to Compare 2 Arrays

Updated: Mar 04, 2023
This article walks you through 4 different ways to compare 2 given arrays in JavaScript. Of these approaches, there will be some that work well even with complex, deeply nested arrays whose elements are objects or child arrays. Without......

The Modern JavaScript DOM Cheat Sheet

Updated: Mar 02, 2023
This article provides a comprehensive cheat sheet for modern JavaScript DOM, covering a wide range of methods and properties that you can use to interact with the Document Object Model in your web applications. Selecting......

JavaScript classes: Using the “super” keyword

Updated: Mar 02, 2023
In JavaScript, the super keyword is often used in a subclass to access a method or property defined in its parent class. Let’s dig deeper into the keyword super through specific examples and use cases in this article. Without......

The Modern JavaScript Variables and Data Types Cheat Sheet

Updated: Mar 02, 2023
This article provides a succinct and comprehensive cheat sheet about variables and data types in modern JavaScript. You can bookmark this page for a quick and convenient lookup later. Variables Variables in modern JavaScript can be......

The Modern JavaScript Objects Cheat Sheet

Updated: Mar 02, 2023
This page provides a concise but comprehensive cheat sheet about objects in modern JavaScript. Creating Objects Object Literal The object literal notation is the most common and concise way to create an object in......

The Modern JavaScript Arrays Cheat Sheet

Updated: Mar 02, 2023
This a comprehensive cheat sheet about arrays in modern JavaScript that can help you quickly find the syntax or method as needed. I also use this cheat sheet very often when developing my applications. You can bookmark this page for later......

JavaScript: Regular Expressions Cheat Sheet

Updated: Mar 01, 2023
Here’s a comprehensive cheat sheet about regular expressions in JavaScript, to help you quickly look up the most important things. I also use this cheat sheet very often when working on my projects. You can bookmark this page for......

JavaScript Classes & OOP Cheatsheet

Updated: Mar 01, 2023
This cheat sheet provides a quick reference guide for declaring and using classes, creating objects, inheritance, and other OOP (Object-Oriented Programming) concepts in JavaScript. Class Declaration Classes can be declared using......
How to Create a Class in JavaScript

How to Create a Class in JavaScript

Updated: Feb 28, 2023
This short and straightforward article shows you 2 ways to create a class in JavaScript, which allows you to define a blueprint for creating objects that share common properties and methods. Class Declarations Class declarations......

JavaScript: Ways to Compare 2 Strings Ignoring Case

Updated: Feb 28, 2023
This succinct, example-based article walks you through 3 different ways to compare 2 strings ignoring cases (regardless of lowercase and uppercase, for example, A and a are considered equal) in JavaScript. Using toLowerCase() or......

JavaScript: 2 Ways to Convert a String into a Date Object

Updated: Feb 28, 2023
This article shows you a couple of different approaches to converting a given string into a date object in JavaScript. What strings can be converted to date objects? First of all, it’s important to note that not all string......

JavaScript: Check if a String Starts or Ends With a Substring

Updated: Feb 28, 2023
This concise, straightforward article shows a couple of different ways to check if a given string starts or ends with a substring in JavaScript. Using startsWith() and endsWith() Overview You can use the built-in string methods......