javascript

javascript

JavaScript program to convert Celsius to Fahrenheit

JavaScript program to convert a celsius value to fahrenheit. This program will use HTML, CSS and JavaScript to get the celsius input from the user and to convert it.

Read
javascript

3 different JavaScript program to convert a set to array

JavaScript program to convert a set to array. Set holds unique values and array can have duplicate values. We will learn 3 different ways to convert a given set to array in JavaScript.

Read
javascript

How to stop forEach() method in JavaScript

Learn how to stop forEach method in JavaScript. forEach is used to iterate through array items. This post will show you how to stop this method in between.

Read
javascript

JavaScript program to get the selected value from a dropdown list of items

JavaScript program to get the selected value from a dropdown list of items. We will create one HTML file that will show one dropdown to the user and using JavaScript, it will get the selected value.

Read
javascript

How to print a multiplication table in HTML,CSS, and JavaScript

Learn to print a multiplication table in HTML, CSS and JavaScript. We will read the number as input from the user and it will print the multiplication table on a button click.

Read
javascript

2 different JavaScript program to calculate age from date of birth

JavaScript program to calculate age from date of birth of a person. We will learn two different ways to calculate the age from birth date.

Read
javascript

JavaScript program to add two numbers - 3 different ways

Learn how to add two numbers in javascript. We will learn three different ways to add two numbers in javascript. We will learn to add two numbers using HTML and by taking user inputs.

Read
javascript

2 different JavaScript program to remove last n characters from a string

JavaScript program to remove the last n characters from a string. We will learn two different ways to solve this. We will solve it by using slice() and substring().

Read
javascript

2 different JavaScript methods to remove first n characters from a string

JavaScript program to remove the first n characters from a string. We will use slice and substring methods to remove the first n characters from a string.

Read
javascript

3 JavaScript programs to get the first character of each words in a string

JavaScript program to get the first character of each word in a string. We will learn 3 different ways to solve this. By using a loop, ES6 map, split and using regex.

Read