15 Features to Supercharge Your Javascript Code

15 Features to Supercharge Your Javascript Code

Javascript has continued to evolve and improve, with additional features being continuously added to its underlying language specification, ECMAScript.

Javascript has continued to evolve and improve, with additional features being continuously added to its underlying language specification, ECMAScript.

It’s easy to miss out on some of these new features that can make your code cleaner and more succinct. Below I have collected what I believe to be some key features you should be taking advantage of, alongside a few useful tips.

1. Arrow Functions

Arrow functions have been around for a while now. If you’re not already using them, they’re a great way to make your functions more concise.

Arrow functions are just a more compact way of writing a traditional function.

There are a few rules which you must obey when using them:

  • Parentheses() are optional for arrow functions with a single argument. For 0, or more than 1 argument, they are mandatory.
  • Curly braces {} are only required if you wish to make the arrow function multiline, they can be omitted for single-line functions.
  • If your arrow function uses curly braces then you must include a return statement at the end. Otherwise, it is implicit, and not required.

javascript programming coding

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Principles of Functional Programming in JavaScript That Will Make Your Coding Life Easier

Who else loves to write side-effects-free functions? I think we, as programmers, all do. Today, in this story, I will walk you through the basic principles of functional programming that will make your coding life easier.

4 Ways You Can Get Rid of Dirty Side Effects for Cleaner Code in JavaScript

4 Ways You Can Get Rid of Dirty Side Effects for Cleaner Code in JavaScript. Bugs are born in many ways. Creating side effects is one of them. Some people say side effects are evil, some say they’re not.

Who Else Wants to Write Clean JavaScript Code?

Who Else Wants to Write Clean JavaScript Code? 7 Tips to Make Your Coworkers Fall in Love With Your Code.

Code Formatting with Prettier in Visual Studio Code

Formatting code consistently is a pain, especially when working on a team. The beauty of modern-day web development is that the tooling has gotten so much better! In this article, we will look at setting up Prettier to automatically format your code in Visual Studio Code.

Top 15 Simple Coding Techniques to Get Your Tasks Done with Shorter Code in JavaScript

Don’t waste time writing long code while you can make it short, yet clearer and easier to read. In this Javascript tutorial, we'll discuss 15 Simple Coding Techniques to Get Your Tasks Done with Shorter Code in JavaScript