Question: Write JavaScript program that will ask user for a string and for an index. The program should then display the character in the given string
Write JavaScript program that will ask user for a string and for an index. The program should then display the character in the given string at the given index.
2. Write JavaScript program that will ask user for a string and two (different) indices. The program should create and display new string in which the characters in the original string at two indices are switched.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
