Skip to content

Tag Archives: JavaScript-Misc

parentNode: The parent node property is read only property which returns us the name of the parent node of the selected node as a node… Read More
To trigger a file download on a button click we will use a custom function or HTML 5 download attribute.Approach 1: Using Download attribute The download… Read More
You might have occasionally came across “javascript:void(0)” in an HTML Document. It is often used when inserting an expression in a web page might produce… Read More
Give a phone number and the task is to format a phone number in such a way that it becomes easy to understand for humans.… Read More
The task is to convert the string value containing ‘px’ to the Integer Value with the help of JavaScript. Here, Few approaches are discussed. Approach… Read More
CSS rules can be read and manipulated using DOM (Document Object Model). To read all the Embedded CSS rules using JavaScript we can use the… Read More
Let us first take a look at a problem and then we’ll take a look at how default values for function parameters address that problem.… Read More
There is no goto keyword in javascript. The reason being it provides a way to branch in an arbitrary and unstructured manner. This might make… Read More
The task is to create a function from the string given in the format of function. Here are few techniques discussed with the help of… Read More
Usage of NoScript tag: The tag defines alternate content that will be displayed if the user has disabled script or browser does not support script.… Read More
The task is to compute the cartesian product of 2 JavaScript arrays with the help of JavaScript. Here are few techniques discussed. Approach 1: Create… Read More
Destructuring Assignment is a JavaScript expression that allows to unpack values from arrays, or properties from objects, into distinct variables data can be extracted from… Read More
Prerequisite: Arrow Functions A Higher-Order function is a function that receives a function as an argument otherwise returns function as output. Higher-Order Arrow function implies… Read More
There is two popular way to make browsers go back to the previous page by clicking JavaScript event, both methods are described below: Method 1:… Read More
A number, represented as monetary value, creates an impact and becomes much more readable, and that’s the reason behind formatting a number as currency. For… Read More

Start Your Coding Journey Now!