Skip to content

Tag Archives: JavaScript-Misc

Method 1: Using Object.values() Method: The Object.values() method is used to return an array of the object’s own enumerable property values. The array can be… Read More
We have given two arrays containing keys and values and the task is to store it as a single entity in the form key =>… Read More
Method 1: Using the apply() method: The apply() method is used to call a function with the given arguments as an array or array-like object.… Read More
Method 1: Using split() and join() Method: The split() method is used to split a string into multiple sub-strings and return them in the form… Read More
By default, HTML 5 input field has attribute type=”number” that is used to get input in numeric format. Now forcing input field type=”text” to accept… Read More
To get the pixel of any specific portion from HTML canvas you can use the HTML canvas getImageData() Method. The getImageData() method usually returns an… Read More
To clear the previously appended data on change the drop-down is carried out by using jQuery. Appended data must be cleared on change or on… Read More
To wrap setTimeout in a promise returned by a future. We can wrap setTimeout in a promise by using the then() method to return a… Read More
To create a slide down navigation bar you need to use HTML, CSS, and JavaScript. HTML will make the structure of the body, CSS will… Read More
The task is to pick a random color from an array using CSS. There is no way to do this using CSS only. CSS doesn’t… Read More
The setInterval() method always invokes the function after the delay for the first time using two approaches: Method 1: Calling the function once before executing… Read More
A fraction is simplified if there are no common factors (except 1) between the numerator and the denominator. For example, 4/6 is not simplified, since… Read More
To create hoverable side navigation with icon on any website there is a need for two things HTML and CSS. If you want to attach… Read More
Console Object: The Console object provides access to the browser’s debugging console, which can be seen using F12 or ctrl+shift+j. Console object contains many methods,… Read More
In programming, dynamic variable names don’t have a specific name hard-coded in the script. They are named dynamically with string values from other sources. Dynamic… Read More

Start Your Coding Journey Now!