JS Questions
JS Questions
Assignment
Submission Last Date: 20th April 2020
9) Write a JavaScript program to get the difference between a given number and
100, if the number is greater than 100 return double the absolute difference.
10) Write a JavaScript program to check from two given integers, whether one is
positive and another one is negative.
11) Write a Java Script Program to check whether a number entered by the user is
even or odd.
12) Write a JavaScript program to create a new string from a given string changing
the position of first and last characters. The string length must be greater than or
equal to 1.
13) Write a JavaScript program to capitalize the first letter of each word of a given
string.
14) Write a Java Script Program to apply the certain related string, numeric and
password validations with suitable example
15) Write a JavaScript program to create a new string from a given string taking the
last 3 characters and added at both the front and back. The string length must be
3 or more.
16) Write a JavaScript function to validate whether a given value type is boolean or
not.
17) Write a JavaScript function to validate whether a given value type is null or not.
18) Write a JavaScript function to validate whether a given value type is null or not.
19) Write a JavaScript program to filter out the specified values from a specified
array. Return the original array without the filtered values.
20) Write a Java Script Program to read a number and to find the factorial of given
number.
21) Write a JavaScript program to extract out the values at the specified indexes from
a specified array.
22) Write a JavaScript program to split values of two given arrays into two groups. If
an element in filter is truthy, the corresponding element in the collection belongs
to the first group; otherwise, it belongs to the second group.
23) Write a Java Script Program to check whether the string entered by the user is
palindrome or not, in the Alert Dialog box.
24) Write a JavaScript program to create a new array out of the two supplied by
creating each possible pair from the arrays.
25) Write a JavaScript program to get a sorted array of objects ordered by properties
and orders.