Posts from JavaScript

Link external JavaScript file in HTML

By Samim

In this article, we will see how to link external JavaScript (js) file in HTML. We can link an external JavaScript file to an HTML document to separate our JavaScript code from you.... Read More

Get a timestamp in JavaScript

By Samim

In this tutorial, we will see how to get timestamp in JavaScript. In JavaScript, we can get a timestamp in various ways depending on our requirements. A timestamp represents the nu.... Read More

Empty an array in JavaScript

By Samim

In this tutorial, we will learn how to empty an array in JavaScript. To make it clear and understandable, I will simply take an array variable and put some elements in it. Then I w.... Read More

Get all unique values in a JavaScript array

By Samim

In this tutorial, I will show how to get all unique values in a JavaScript array. In JavaScript, an array is a handy way to store a list of items. Sometimes, we might want to find .... Read More

How to remove blank lines from a .txt file in Node.js

By Abid Hassan

Removing blank lines from a .txt file inĀ  Node.Js is easy. Let’s Understand the concept, First of all, we have to access the .txt file next we need to break the paragraph or.... Read More

How to extract values from nested JSON

By Abid Hassan

In this tutorial, you will learn how to extract values from nested JSON using various methods in Node.js. These methods include dot notation, square bracket notation, and object de.... Read More

Get the Operating system name or Platform name in NodeJS

By Abid Hassan

Getting the operating system platform is very easy. In NodeJS at first, we just have to import a module ("os"), which is a built-in module of NodeJs that provides several methods r.... Read More

The Best Practices for JavaScript Security

By Diksha Jain

Introduction to JavaScript Security In September 2018, British Airways, one of the world’s leading airlines, experienced a severe cyber attack. The company’s website wa.... Read More

Related Posts