Question: 2(a) Write the JavaScript code which does the following tasks: (3 marks) i Prompt the user to request for an input string ii. Check whether

 2(a) Write the JavaScript code which does the following tasks: (3
2(a) Write the JavaScript code which does the following tasks: (3 marks) i Prompt the user to request for an input string ii. Check whether the input string is a palindrome ili. Alert the user whether the input string is a palindrome A palindrome is a word. phrase, verse or sentence that reads the same backward or forward For example: Delia saw I was ailed Your answer 2(b) The JavaScript consists of a function that used to calculate the maximum of two decimal numbers and rounds the maximum number into the closest Integer number. You are required to finish the incomplete code in the JavaScript function below. Note that you have to use the built-in function to calculate the maximum value between two numbers and round up the maximum number. (2 marks) CIDOCTYPE html> chtal chead>Welcome Page body? <script type-text> <!-- fill in the code below --> document.write mynction (9.75, 18.25) </script>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!