rocoderes
Rocoderes
159 posts
Don't wanna be here? Send us removal request.
rocoderes · 2 years ago
Text
How to Work With Responding to and Tracking Key Presses
In this article, we are going to see about JavaScript Problem: Responding to and Tracking Key Presses. We are going to look at adding a handler to capture and respond to keyboard events. We will capture those key presses and then display them. So this is going to be a very easy practice and this article will explain you in very simple manner. So let see a very basic example with which we can…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
Passing a JavaScript Value Between HTML Pages
In this article, we are going to look at passing a JavaScript value between HTML pages. So basically we will have two HTML pages, and we will move some or information from one page to another using some basic methods. So this thing will be very much helpful when you try to create websites where you need to pass the data from one page to another. We will see this with very basic example and…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
JavaScript Problem: Compare Objects in an Array
In this part, we are going to see that how we can compare objects in an array. So we will create some arrays, and we will compare those arrays to eliminate duplicate values. And also we will compare objects which are present in these arrays, so we can get a duplicate free array. It is a little bit hard to compare objects in JavaScript if you are a learner, so we will try to understand the problem…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
Switching Name Order Using Capturing Groups in Regular Expressions
In this article, we are going to see how we to do Switching Name Order Using Capturing Groups in Regular Expressions. So we will have an array of name where we have some values, and we will use a regular expression to exchange their positions. There are multiple possibilities to make this thing happen, but we are going to see a very good method to get optimal solution. Solution: Okay now lets…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
JavaScript Problem: How to Perform Shuffling an Array
In this article, we are going to see about shuffling an array in JavaScript. Shuffling can be a very useful feature while creating some applications like quiz, scramble games etc. or might be useful in many ways. So we will make this thing happens with some simple and basic way. We will take an array of element or numbers, and we will apply some logic on them to shuffle in random order. So let’s…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
JavaScript Problem: Using Set to Create a Non-duplicated Collection
In this article, we are going to see how we can create a Non-duplicated Collection using set. So in JavaScript we usually work with array, right? And we know that array can consist of duplicate value. Creating an array of values without duplicating a value takes a bit of work. You need to check each new value. ES6 provides an easier way of doing that by creating a set. Create a Non-duplicated…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
Formatting Time Using The Date Object and String Padding
In this article, we are going to discuss about Formatting Time Using the Date Object and String Padding. So we will see to format the time with the help of Date object, and we are going to use milliseconds, with which we can get time in the format of (0000:00:00.00)[hhhh:mm:ss.ms]. Here we are using milliseconds to get time because we can divide milliseconds with 1000 to get seconds and with…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
Extracting Numbers From a String in JavaScript
In this article, we are going to see the Extracting Numbers from a String in JavaScript. As we know, extracting a number from the given string will be easier when we apply some methods like parseInt() and parseFloat() methods, right? But it also has some limitation which we are going to see in here, and also we will see some different ways to extract numbers from a string. Extracting Numbers…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
0 notes
rocoderes · 2 years ago
Text
Eloquent JavaScript Exercise -Range and Sum Function
Eloquent JavaScript Exercise -Range and Sum Function
In this article, we will talk about a JavaScript problem which is Range and Sum Function in JavaScript. This problem is in chapter 4 of Eloquent JavaScript book which very famous for JS of course. So we will understand this problem and also solve the problem with very basic logic. Range and Sum Function Problem The introduction of this book alluded to the following as a nice way to compute the…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
0 notes
rocoderes · 2 years ago
Text
0 notes
rocoderes · 2 years ago
Text
Computing Fibonacci Sequence in JavaScript
Computing Fibonacci Sequence in JavaScript
In this article, we are going to learn and see to computing Fibonacci sequence in JavaScript. It is a basic problem, or you can say a program in JavaScript, computing Fibonacci sequence becomes more problematic when you don’t know its main logic. So we are just going to make a Fibonacci sequence with some easier and good way to help out beginners. What is Fibonacci Sequence? Fibonacci’s…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
How To Get Duplicate Object From Array in JavaScript?
How To Get Duplicate Object From Array in JavaScript?
In this article, we are going to see how to get duplicate object from array in JavaScript? Okay, this is the JavaScript problem statement which we are going to discuss, and also we will solve it in very simple and straight-forward way. As we know, an object array can contain a number of elements and one key which we can say identity of the object should be unique. So this issue arises when…
Tumblr media
View On WordPress
0 notes
rocoderes · 2 years ago
Text
0 notes
rocoderes · 2 years ago
Text
0 notes
rocoderes · 2 years ago
Text
0 notes