# javascript

Sorting arrays with JavaScript: a deep look into the sort() method

The sort( ) method like every other higher-order function accepts a function as an argument, the accepted function is called the "compare function", this compare function determines the sort order.

Link

For...of and For...in loops

The for...in and for...of loops both do the same thing but quite differently, both loop through the enumerable properties of an object but in a different way.

Link

Symbols in JavaScript

Symbols are a primitive datatype introduced in ECMAScript 2015, each value returned from creating a symbol is unique.

Link

Nullish coalescing and optional chaining in JavaScript

The nullish coalescing operator checks if the left-hand side of an expression evaluates to undefined or null.

Link

Using Filters in Vue

Filters in Vue.js are helper functions that can be used to quickly format text in a component's template.

Link

Using watchers in VueJs

watchers in Vue are a helpful way to detect changes with data inside a component, they are functions on the component's instance.

Link
How to setup ESLint and Prettier for your JavaScript projects cover image

How to setup ESLint and Prettier for your JavaScript projects

ESLint is a very powerful linting tool while Prettier is a code formatter that helps make your code easy to read.

Link
Using rest and spread operators in JavaScript cover image

Using rest and spread operators in JavaScript

The three dots (...) signify both the rest and spread operators in JavaScript, their functionality depends on where they're used.

Link

Advanced techniques in destructuring (How to destructure arrays and objects - Part 3)

There are advanced techniques used in destructuring to help us write even cleaner code, from the last two articles, we discussed how destructuring works in arrays and objects.

Link
How to destructure arrays and objects in JavaScript - part 2 cover image

How to destructure arrays and objects in JavaScript - part 2

Destructuring is one of the cool features that came with the release of ES6 in 2015, It makes it easy to extract values from arrays and objects and store them in variables.

Link
How to destructure arrays and objects in JavaScript - part 1 cover image

How to destructure arrays and objects in JavaScript - part 1

Destructuring is a cool new way to easily extract values from arrays, this technique was also introduced in the ES6 syntax of writing JavaScript in 2015.

Link
How to use arrow functions in JavaScript. cover image

How to use arrow functions in JavaScript.

The arrow function is a cool addition to the ES6 syntax of writing JavaScript, introduced in 2015, arrow functions are a shorter way to write functions in JavaScript.

Link