hello.js

var please = require('share');
console.log('thank you');

NEW !!!

Tuesday, 19 October, 2021 UTC

How to Fill an Array with Initial Values in JavaScript

How to initialize an array with initial values in JavaScript using array.fill(), Array.from(), or array.map() ... more


Thursday, 7 October, 2021 UTC

What are Higher-Order Functions in JavaScript?

The higher-order function accept as arguments or return other functions. ... more


Tuesday, 17 August, 2021 UTC

2 Ways to Remove a Property from an Object in JavaScript

How to remove properties from an object in JavaScript using the delete operator or object destructuring with rest syntax. ... more


Tuesday, 10 August, 2021 UTC

'return await promise' vs 'return promise' in JavaScript

Is there any difference between using 'return await promise' and 'return promise' in asynchronous JavaScript functions? ... more


Wednesday, 21 July, 2021 UTC

JavaScript Promises: then(f,f) vs then(f).catch(f)

What's the difference between promise.then(fn, fn) and promise.then(fn).catch(fn) when using JavaScript promises? ... more


Thursday, 15 July, 2021 UTC

What is a Promise in JavaScript?

The post that I had wanted to read myself to understand promises. ... more


Wednesday, 16 June, 2021 UTC

A Simple Explanation of JavaScript Variables: const, let, var

How to declare, initialize, assign and read JavaScript variables using const, let and var statements. ... more


Thursday, 10 June, 2021 UTC

How to Dynamically Import ECMAScript Modules

How to use import(pathToModule) to dynamically import ECMAScript modules in JavaScript. ... more


Tuesday, 18 May, 2021 UTC

Why Math.max() Without Arguments Returns -Infinity

What is the reason that Math.max() utility function when being called without arguments returns -Infinity. ... more


Tuesday, 4 May, 2021 UTC

Don't Confuse Function Expressions and Function Declarations in JavaScript

What are the differences between function declarations and function expressions in JavaScript. ... more


Tuesday, 27 April, 2021 UTC

How to Use ECMAScript Modules in Node.js

How to enable and use ECMAScript 2015 modules in Node.js. ... more


Tuesday, 20 April, 2021 UTC

Solving a Mystery Behavior of parseInt() in JavaScript

Solving a mystery of how parseInt() parses small float numbers in JavaScript. ... more


Tuesday, 13 April, 2021 UTC

How to Use Array Reduce Method in JavaScript

What is a reduce operation and how to use array.reduce() method to perform the reduce operation on arrays. ... more


Tuesday, 6 April, 2021 UTC

3 Ways to Merge Arrays in JavaScript

How to merge arrays in JavaScript using spread operator, array.concat() and array.push(). ... more


Tuesday, 23 March, 2021 UTC

The Difference Between Values and References in JavaScript

What is the difference between passing by value and passing by reference in JavaScript. ... more


Tuesday, 16 March, 2021 UTC

How to Implement a Queue in JavaScript

The guide on how to implement a queue data structure in JavaScript. ... more


Tuesday, 9 March, 2021 UTC

A Helpful Algorithm to Determine "this" value in JavaScript

Struggle finding "this" value? I have created an universal algorithm to help you find "this" in any situation. ... more


Tuesday, 23 February, 2021 UTC

7 Interview Questions on "this" keyword in JavaScript. Can You Answer Them?

7 interview questions to challenge your knowledge on "this" keyword in JavaScript. ... more


Tuesday, 9 February, 2021 UTC

7 Interview Questions on JavaScript Closures. Can You Answer Them?

I compiled a list of 7 interesting and increasingly challenging questions on JavaScript closures. Can you answer them? ... more


Tuesday, 2 February, 2021 UTC

What's a Method in JavaScript?

A method is a function that belongs to an object and executed with that object as a context. ... more


Tuesday, 26 January, 2021 UTC

array.sort() Does Not Simply Sort Numbers in JavaScript

array.sort() method, when invoked without arguments, doesn't sort numbers as you might expect. ... more


Tuesday, 12 January, 2021 UTC

The New Array Method You'll Enjoy: array.at(index)

array.at(index) method in JavaScript accesses array items at positive and (finally!) at negative indexes. ... more


Tuesday, 29 December, 2020 UTC

Why Promises Are Faster Than setTimeout()?

Why an immidiately resolved promise is faster then an immediate timeout? ... more


Tuesday, 22 December, 2020 UTC

Everything About Callback Functions in JavaScript

The callback is a function being called by another function, either synchronously or asynchronously. ... more


Tuesday, 1 December, 2020 UTC

5 Best Practices to Write Quality JavaScript Variables

5 best practices on how to write quality JavaScript variables: prefer const, minimize scope, close to use place, and more. ... more


Tuesday, 24 November, 2020 UTC

Type checking in JavaScript: typeof and instanceof operators

How to perform type checking in JavaScript using typeof and instanceof operators. ... more


Tuesday, 17 November, 2020 UTC

3 Ways to Check if a Variable is Defined in JavaScript

How to check if a variable is defined in JavaScript using typeof operator, try/catch blocks, or window.hasOwnProperty(). ... more


Tuesday, 3 November, 2020 UTC

What Makes JavaScript JavaScript? Prototypal Inheritance

The guide that will make you understand prototypal inheritance in JavaScript: prototype object, inherited propertes, chain of prototypes. ... more


Tuesday, 20 October, 2020 UTC

How to Learn JavaScript If You're a Beginner

In this post I share my experience on how to learn JavaScript efficiently and stay motivated in the process. ... more


Tuesday, 6 October, 2020 UTC

A Simple Explanation of JavaScript Iterators

What are iterators and iterables in JavaScript and how to use them to iterate collections. ... more