Vowel position and reversing number in JavaScript

Vowel position and reversing number in JavaScript

15CSL77
WEB TECHNOLOGY LABORATORY WITH MINI PROJECT


Program

Develop and demonstrate a  HTML5 file that includes JavaScript script that uses functions for the following problems:
  1. Parameter: A string
  2.  Output: The position in the string of the left-most vowel
  3. Parameter: A number 
  4. Output: The number with its digits in the reverse order

Viva Question

  1. str.toUpperCase ():- Used to convert all character in the string(str) into Upper Case.
  2. prompt():- Used to open input window in JavaScript.
  3. str.length:- Used to calculate length of string(str).
  4. isNaN(str):- is Not a Number (is used to check given string is number or Alphabet)
  5. str.charAt(i):- Is us to find character at position i in string(str).
  6. parseInt(str):- used to parse string into integer.

Vowel position and reversing number in JavaScript code




Output

Vowel position and reversing number in JavaScript video tutorial

No comments:

For Query and doubts!

Powered by Blogger.