Skip to content

Tag Archives: JavaScript-Misc

Given below is a JavaScript code snippet which is basically described how to delay a loop in JavaScript using async/await. In this article, we are… Read More
Definition: Async is a short form for “asynchronous”. Synchronous means executing statements one after the other which implies the next statement will get executed only… Read More
Given a number and the task is to convert the number from decimal to octal. This can be done by using number.toString(8) method. It takes… Read More
Given many elements inside the DOM, the task is to find out which element is being currently scrolled using JavaScript. Approach: This problem can be… Read More
In this article, we will create a Gif Search Engine using JavaScript. The basic application of Gif search Engine is to search the images from… Read More
In this article, we will find the height of the text canvas using JavaScript. Approach: In the following example, the height attribute of the HTML… Read More
The Button disabled property in HTML DOM is used to set or return whether a Button element would be disabled or not. A disabled element… Read More
Protractor is an end-to-end test framework developed for Angular and AngularJS applications. It runs tests against the application interacting with it as a real user… Read More
In the following article,  we dynamically add and remove list items using JavaScript. We are using JavaScript to add and/or remove list items dynamically which… Read More
Given a string in and the task is to write a JavaScript code to convert the given string into snake case and print the modified… Read More
In this article, we will set the alignment of content using JavaScript. The DOM Style alignContent property is used to align the items of a… Read More
First-Class Function: A programming language is said to have First-class functions if functions in that language are treated like other variables. So the functions can… Read More
Protractor is an end-to-end test framework developed for Angular and AngularJS applications. It runs tests against the application interacting with it as a real user… Read More
In this article, we will align the text content into center by using JavaScript. TWe use HTML DOM style textAlign property to set the alignment… Read More
Problem statement: Given an HTML document with many elements, we have to find if all the selected elements contain the same particular CSS class or… Read More

Start Your Coding Journey Now!