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:
- Parameter: A string
- Output: The position in the string of the left-most vowel
- Parameter: A number
- Output: The number with its digits in the reverse order
Viva Question
- str.toUpperCase ():- Used to convert all character in the string(str) into Upper Case.
- prompt():- Used to open input window in JavaScript.
- str.length:- Used to calculate length of string(str).
- isNaN(str):- is Not a Number (is used to check given string is number or Alphabet)
- str.charAt(i):- Is us to find character at position i in string(str).
- 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!