Question: Javascript --- Can anyone give an example of a Javascript coding that satisfy the criteria below? 1. Create a conditional statement that checks if two
Javascript ---
Can anyone give an example of a Javascript coding that satisfy the criteria below?
1. Create a conditional statement that checks if two strings are equal. Include an if and else statement. The conditional should include alerts that gives your user feedback based on the string defined. Test your statement with different strings to make sure both alerts work. Include your tests as comments below your statement.
2. Create a conditional statement that compares two numbers. You can choose if those numbers will be equal, less than, greater than, less than or equal to, or greater than or equal to each other. Include an if, else if, and else statement. The conditional should include alerts that give your user feedback based on the number. Test your statement with different numbers to make sure all alerts work. Include your tests as comments below your statement.
3. Create function that takes in one argument that is passed through a conditional statement. Return the result as an alert or console.log. Test all of your conditions to make sure you can receive all of your results back. Include your tests as comments below your statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
