Javascript

JavaScript Enum

How to Create and Use Enums in JavaScript (Not TypeScript)

This article will show you how to create and consume Enums in JavaScript. Unfortunately, javaScript does not include native support for Enums, but you can add comparable functionality yourself. Note that TypeScript, a language that builds on JavaScript, does include support for Enums natively. So we’re… Read More »How to Create and Use Enums in JavaScript (Not TypeScript)

JavaScript Ternary Operator

How to Use the Ternary Operator in JavaScript, With Examples

This short article will explain what the ternary operator is in JavaScript and how to use it. The ternary operator is a short-hand if statement for quickly executing code based on whether a condition is met. It simplifies your code and reduces visual clutter. Here’s how to use it. JavaScript… Read More »How to Use the Ternary Operator in JavaScript, With Examples

JavaScript Modules

Beginners Guide: Create and Use JavaScript ES6 Modules

This short tutorial aims to get you started creating and using JavaScript modules and provides some simple examples. What is ES6? JavaScript’s official name is actually ECMAScript, and version 6 introduced module functionality to create and consume modules, so you might see JavaScript Modules referred to as… Read More »Beginners Guide: Create and Use JavaScript ES6 Modules