Skip to content

Tag Archives: JavaScript-Misc

Given a range of years, the task is to find the year having Sunday on 1st January. Approach: We can use javaScript Dates to get… Read More
JavaScript is a high level, dynamically typed client side scripting language. JavaScript adds functionality to static HTML pages. Like most other programming languages JavaScript allows… Read More
Stopping a forEach() loop seems almost like an impossible task but here are a few tricks by which we might do it. Sample example using… Read More
Javascript is a high level, interpreted, dynamically typed client side scripting language. HTML is static and Javascript is used to add functionality to static HTML… Read More
Given a collection that contains the detail information of employees who are working in the organization. We need to find some values from that nested… Read More
JavaScript is a high level, interpreted and dynamically typed client-side scripting language. JavaScript is used to add dynamic features to the static HTML. Everything is… Read More
Both location and location.href are used to set or return the complete URL of your current page. They return a string which contains the entire… Read More
There is no direct method to download and submit the form simultaneously, but we can perform this task if we control the form submission and… Read More
To get the height of an element, there are five common methods in JavaScript. Lets see the differences between each and when they should be… Read More
How to implement a 2-player Tic-Tac-Toe game using JavaScript?  It is quite easy to develop with some simple validations and error checks. Player-1 starts playing… Read More
The following are the two approaches to generate an array containing n number of non-repeating random numbers. Using do-while loop and includes() function. Using a… Read More
The purpose of this article is to send the value of the button to PHP back-end using AJAX in an HTML document. Approach: Create a… Read More
1. Predict and Explain the Output of the below JavaScript program. Javascript function f(a, b, c) {     m = ["1", "2", "3"];     a = 3;… Read More
In this article, we will see how to dynamically create a CSS class and apply to the element dynamically using JavaScript. To do that, first… Read More
JavaScript is a programming language. Many of these are related to the way, JavaScript is often executed directly in a client’s browser commonly utilized in… Read More

Start Your Coding Journey Now!