Answer: software (answer not long enough)
Answer:
Explanation:
1) the versions of JavaScript that are fully supported by all modern browsers ( Except internet explorer 9) are:
C. ECMAScript 3, ECMAScript 5
2) JavaScript is used to implement complex features on a_____
A. web page
3) computer programming tools that are used to store data are called____
C. variables
4) var name = Scott; is the code to create a ____ called "Scott"
D. None of the above
Scott is a variable
5) the key difference between "var" and "let" variables is that____
D. None of the above
let is used to redefine a variable by using var to redefine may cause problems
6) Hoisting in JavaScript is the process whereby declarations get moved to the____
C. top
7) Im JavaScript, "/ /" is used to code____
A. comments
8) ______ data types have two potential values - true and false.
D. None of the above
Boolean is the data type and null is always false
9) Using ____ gives coders the ability to query data set data to create blueprints.
C. consoles
The Console object provides access to the browser's debugging console.
Invented by William Oughtred in the 1600s but only used in the mid 1800s
Answer:
The method definition to this question can be given as:
Method definition:
double max(double x, double y) //define method with double parameter
{
if (x>=y) //check condition.
return x; //return value
else
return y; //return value
}
double max(int x, int y) //define method with integer parameter
{
if (x>=y) //check condition
return x; //return value
else
return y; //return value
}
double max(char x, char y) //define method with char parameter
{
if (x>=y) //check condition
return x; //return value
else
return y; //return value
}
Explanation:
The above method definition can be described as below:
- In the first method definition first, we define a method that is "max()". In this method we pass two variables as a parameter that is "x and y" and the datatype of this is double. Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
- In the second method definition, we define a method that is same as the first method name but in this method, we pass two integer variable that is "x and y". Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
- In the third method definition, we define a method that is same as the first and second method name but in this method, we pass two char variable that is "x and y". Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.