Cristian Salcescu's Blog, page 10

May 10, 2021

How to Reverse a String

Learn to use the Array.from, split, reverse and join methods

Continue reading on Frontend Essentials »

 •  0 comments  •  flag
Share on Twitter
Published on May 10, 2021 23:02

6 Ways To Set Default Values in JavaScript

The OR operators, the nullish operators, function defaults, and more

Continue reading on Better Programming »

 •  0 comments  •  flag
Share on Twitter
Published on May 10, 2021 08:42

May 9, 2021

How to Convert an Integer to an Array of Digits in JavaScript

The split and map methods, the Array.from utility, and more

Continue reading on Frontend Essentials »

 •  0 comments  •  flag
Share on Twitter
Published on May 09, 2021 23:38

May 6, 2021

What is a Closure?

Get-up-to speed with closures and encapsulation in JavaScript

Continue reading on Frontend Essentials »

 •  0 comments  •  flag
Share on Twitter
Published on May 06, 2021 23:10

May 5, 2021

May 4, 2021

Do You Know the Differences Between var, let, and const?

Quick-start with declaring and initializing variables in JavaScript

Continue reading on Frontend Essentials »

 •  0 comments  •  flag
Share on Twitter
Published on May 04, 2021 23:02

Why I Still Don’t Like Classes in JavaScript

The this parameter, privacy with classes, and factory functions are just a few pitfalls

Continue reading on Better Programming »

 •  0 comments  •  flag
Share on Twitter
Published on May 04, 2021 10:08

May 3, 2021

How to Remove Falsy or Nullish Values From an Array

Quick start with the filter array method and the Boolean built-in function

Continue reading on Frontend Essentials »

 •  0 comments  •  flag
Share on Twitter
Published on May 03, 2021 23:02

May 2, 2021

How to Transform a String To and From an Array

The split string method and the array join method

Continue reading on Frontend Essentials »

 •  0 comments  •  flag
Share on Twitter
Published on May 02, 2021 23:02

April 29, 2021

How to (Not) Convert Between Strings and Numbers

Using the built-in Number and String functions

Continue reading on Frontend Essentials »

 •  0 comments  •  flag
Share on Twitter
Published on April 29, 2021 23:02