Vivek Verma has Published 10 Articles

Real Time Calculator using HTML, CSS, and JavaScript

Vivek Verma

Vivek Verma

Updated on 13-Sep-2023 15:59:09

36K+ Views

In this article, we are going to discuss how to develop a Real-Time Calculator using HTML, CSS, and JavaScript. Usually, if we observe any real-time calculator we know that it has − A grid of numbers (0-9 and 00). Some basic athematic operators (+, -, /, x, %). ... Read More

How to add an element to a JavaScript object?

Vivek Verma

Vivek Verma

Updated on 02-Sep-2023 11:27:38

60K+ Views

In JavaScript, the object is a real-time entity that contains properties and methods. In simple words, we can say that object is an instance of a class. It stores the data in the form of key and value pairs. The keys are usually referred to as properties and the values ... Read More

How to toggle between a like/dislike button with CSS and JavaScript?

Vivek Verma

Vivek Verma

Updated on 02-Nov-2022 10:52:20

2K+ Views

The toggle between one button to another button means it allows the user to switch one window to another window, it allows to turn on and off a function, allows to change settings, and provides much more functionality. But in this article we have to write a program with the ... Read More

JavaScript Convert an array to JSON

Vivek Verma

Vivek Verma

Updated on 02-Nov-2022 10:47:32

2K+ Views

An array is a special object in JavaScript, that stores multiple types of values which means that it can store an integer value, string value, or float value simultaneously. There are various ways to create an array in JavaScript, following is the syntax to do so − var array = ... Read More

How to create custom range sliders with CSS and JavaScript?

Vivek Verma

Vivek Verma

Updated on 02-Nov-2022 10:33:12

673 Views

A range slider, is an input field in HTML, that accepts the type as a “range”. It is used to select a numeric value within the given specific range, we can pass the range inside the input field as shown below snippet of code As you can see ... Read More

Write a palindrome program in JavaScript so that only alphanumeric values should be allowed?

Vivek Verma

Vivek Verma

Updated on 29-Aug-2022 11:45:34

442 Views

Palindrome is a string that even when reversed will be the same as the original string. In simple words, the palindrome string will have odd length and the element in 0th index and the last index will be the same, element in 1st index will be the same as the ... Read More

Explain the Date() object in JavaScript?

Vivek Verma

Vivek Verma

Updated on 29-Aug-2022 11:39:28

260 Views

In JavaScript, Date object is an in-built object that stores date and time. It also provides a number of built-in methods in JavaScript like getDate() and getTime() etc. They are used to access the current date and time respectively. var d = new Date(); Also, we can write the ... Read More

Write a number array and using for loop add only even numbers in javascript?

Vivek Verma

Vivek Verma

Updated on 29-Aug-2022 10:01:31

1K+ Views

An array in JavaScript is an datatype which contains similar types of data. A number array is defined as the array object with numbers as its content. These numbers are divided into even and odd types on a basic level of mathematics. In this article, we will look into outputting ... Read More

Write a program to reverse an array in JavaScript?

Vivek Verma

Vivek Verma

Updated on 29-Aug-2022 08:19:42

2K+ Views

Reversing an array means that we are reversing the order of elements present in the array, but not the array itself. In simpler terms, the element at 0th index will be shifted to the last index of the array and vice versa. There are various ways to reverse an array ... Read More

Write a program to find the index of particular element in an array in javascript?

Vivek Verma

Vivek Verma

Updated on 29-Aug-2022 08:05:40

829 Views

Array is an object which contains multiple values of the same datatype in a sequential order. In other words, we can say that an array is a special type of object in the JavaScript. SyntaxWe can create an array in two ways in JavaScript. The syntax are given below − ... Read More

1
Advertisements