Question: Assignment For this assignment, you will write some simple HTML and JavaScript code within a single document. The code should contain the following elements/features: -A
Assignment
For this assignment, you will write some simple HTML and JavaScript code within a single document. The code should contain the following elements/features:
-A paragraph (
) displaying, in red text and size 14 Cambria font, on separate lines:
-Your name (in bold)
-Your birth date (in italics)
-Your username
A div ( -Black text and size 12 Arial font -Two input fields () with id val1 and val2 -A paragraph ( ) with id result initially set to be blank -Operator buttons ( Script: -When any of the operator buttons (2c) are pressed, the paragraph (2b) will display the result of the operation. For example, if the inputs (2a) have 2 and 3, pressing the * button will show the result 6 in the paragraph (2b). -If either input (2a) is blank or has a non-numeric value, pressing any of the operator buttons will cause paragraph (2b) to display nothing (i.e., blank, like its initial state). You may find the following link useful to dealing with this case:https://www.mkyong.com/javascript/check-if-variable-is-a-number-in-javascript/ There are 3 Steps involved in it Get step-by-step solutions from verified subject matter expertsStep by Step Solution
