Found 8895 Articles for Front End Technology

JavaScript Program to Check whether all the rotations of a given number are greater than or equal to the given number or not

Prabhdeep Singh
Updated on 24-Mar-2023 10:22:26

83 Views

In this article, we will go through a JavaScript program to check whether all the rotations of a given number are greater than or equal to the given number or not. We will write an algorithm and explain every step that what we are doing. The time complexity of the code that is going to discuss will be optimistic and space complexity will all be improved from one code to another. Introduction to Problem In the problem, we are given a number and we have to check for each rotation whether they all are greater than the current number or ... Read More

JavaScript Program for Clockwise rotation of Linked List

Prabhdeep Singh
Updated on 24-Mar-2023 10:19:50

247 Views

The basic structure of a Linked List in JavaScript can be created using the class in JavaScript and then the movement of the nodes from one position to another can be done for rotation. In this article, we will learn how to rotate a linked list in a clockwise manner in JavaScript programming language. We will see the code for understating the concepts in deep. In the given problem we have given a linked list and we have to rotate it in a clockwise manner. This means, we have to put the last element in first place in every move ... Read More

Getting started - The First Progam in Snack

Saba Hilal
Updated on 23-Mar-2023 12:49:18

312 Views

Snack is an open-source Expo platform where React Native programming is done and the results can be seen instantly. It compiles and builds the bundle for execution on different types of devices or for Android , IOS or web. The code can be saved and shared quickly on Snack. As the user types the code, the library installation links are given by this interface to the user. Snack is a nice and quick to use platform which makes learning of React native easy for beginners. The user doesn't need to install anything. Just SignUp and then login to your expo ... Read More

Explain Implement a Memoization Helper Function

Prabhdeep Singh
Updated on 17-Mar-2023 13:53:03

263 Views

Memoization is a helper function, or we can say a technique for improving the efficiency of a program by Keeping track of the values that the function has already calculated in the past. In this article, we will discuss the Memoization Helper function with different examples and discuss all the examples in detail so that we can get a better understanding of Memoization. Now let’s discuss the Memoization helper function in the deep in the below section and also see their implementation with an explanation. Introduction to Memoization Helper Function Memoization is a technique of programming that is used to ... Read More

Explain Handler Method in ES6

Prabhdeep Singh
Updated on 17-Mar-2023 13:47:07

125 Views

ES6 is referred to as ECMAScript 6. ES6 is the sixth version of ECMAScript, which was released in 2015 and is sometimes known as ECMAScript 2015. ECMAScript was developed to standardize JavaScript. Further in this article, we are going to discuss Handler Methods in ES6 in detail. Introduction to ES6 As we Know ES6 (ECMAScript 6) is introduced for the standardization of JavaScript. It is a programming language and in ES6 we don't have to need to write a number of lines of code or we can say we have to write less and accomplish more. JavaScript follows the ES6 ... Read More

Explain Different kinds of Generators in JavaScript

Prabhdeep Singh
Updated on 17-Mar-2023 13:45:24

104 Views

As we know JavaScript is a lightweight programming language in which generators were introduced in ECMAScript 2015. A generator is a process that has many output values and may be stopped and started. In JavaScript, a generator is made up of a generator function that produces an iterable Generator object. In this article, we are going to discuss the generators in JavaScript and also the different types of generators in JavaScript with syntax and examples in detail. Introduction to Generators in JavaScript The generator's function is as same as the regular function but there is a bit of difference in ... Read More

Explain Constants in ES6

Prabhdeep Singh
Updated on 17-Mar-2023 13:42:54

113 Views

Debugging is a very hectic process for the developers or the programmer and a minor mistake can lead to major problems like changing a single variable will change the whole code and will become very difficult to detect. Sometimes there are some variables that are not going to change through the code and if by mistake their value got changed or updated by the user then they will not come in first thought that there may be a change in them. To overcome these issues there is a concept defined in the ES6 that if the user knows that a ... Read More

Explain clearTimeout() function in Node.js

Prabhdeep Singh
Updated on 17-Mar-2023 13:37:29

331 Views

There is a timer module in node.js that is used to schedule timers and carry out specific functions at a later time. In Node.js the JavaScript function clearTimeout() is used to halt the execution of the setTimeout() function by using the timeoutID returned by a specific setTimeout() function call. This function does nothing if the timeoutID didn't match for any prior calls or if an invalid value is given. The setTimeout() JavaScript function executes the specified code after the user-specified amount of time or delay, and it returns an ID, which is a positive integer commonly referred to as the ... Read More

Explain Class Methods in Coffeescript

Prabhdeep Singh
Updated on 04-Apr-2023 11:51:39

78 Views

To understand the class methods in CoffeeScript first we need to understand what it is CoffeeScript. CoffeeScript is a lightweight programming language, and this language compiles in JavaScript and is also inspired by languages like JavaScript, python, ruby, Haskell, etc. Further, we will discuss it in detail after that we are going to discuss class methods in CoffeeScript with its syntax of it an example with a full explanation and in the end, we conclude it. Introduction of CoffeeScript As we discussed above it is a lightweight programming language that compiles in JavaScript. It is basically an effort to make ... Read More

Explain Chosen and Select2 with Examples

Prabhdeep Singh
Updated on 17-Mar-2023 13:28:21

707 Views

There are two jQuery plugins that can we use to style the select boxes that are Select2 and Chosen. Both the plugins Select2 and Chosen are improving the look of the selected boxes and enhancing the behavior of the boxes which leads to the make them user-friendly. Also, both of these plugins can be used for multiple selected boxes as well as single selected boxes. Chosen JavaScript plugin that creates the select boxes user-friendly that is chosen. Chosen is available in both the prototype and JQuery versions. Features of the Chosen User-friendly Your users won't have to slog through a ... Read More

Advertisements