JavaScript Programming
JavaScript Programming
Output
Output
3.How to sort a given array of strings?
Output
Output
Output
Output
Output
Output
10.How can you combine two arrays into a third array using
spread operator?
To combine two or more arrays, we will use the spread operator.
Output
11.How do you sort and reverse an array without changing the
original array?
We can use slice () to make copy then reverse () it.
Output
Output
13.Given two strings how can you check if the strings are
Output
Output
array?
Output
array?
Output
18.Replace all occurrence of string using built in method?
Output
Output
Output
21.Convert a given number into exact decimal points to right
side?
We will use toFixedmethod to convert a given number into exact decimal points
Output
Output
Output
27.Write a program to print factorial of a number?
Output
taken from 0, 1, 2, ..., n, find the one that is missing from the
array.?
Output
Output