Problem Statement:

Create a script which accepts a string and a character from the user. The script returns True if the character is present in the string, otherwise returns False.

Source Code:

ex5.html

ex5script.js

Output:

Click here for output