JavaScript Symbol
JavaScript Symbol Type and Properties

Search for a command to run...
Articles tagged with #webdev
JavaScript Symbol Type and Properties

We know that objects contain properties that are key-value pairs, but there's more to that — it includes the flag attributes. Property flags The 3 other attributes besides the value property are: writable — override (change) current value, if true....

A function can solve a task by calling other functions or itself. It is a chalk of tasks that is split into smaller or several tasks of the same kind. Every function solves a task. See the example below: const pow = (x, y) => { if (y === 1) { ...

In JavaScript, code in a script or a function body has a hidden object called the Lexical Environment object. The object can not be gotten from the code; It only describes how the code works. There are two components of the lexical environment object...

In this article, we will see what the rest parameters and what spread syntax is all about. The example below is a summary of this article. const peopleGrades = (index, ...numbers) => { /* ...rest */ const array = [ ...numbers ]; // ...spread ret...

The JSON.stringify syntax used so far is: JSON.stringify(value) The general syntax actually is: JSON.stringify(value[, replacer, space]) replacer and space are optional. replacer The replacer is an array of properties to encode or a mapping functi...
