Conclusion 13/13


Here's what I did:

var Question = function(310 / 5) {
if(310 / 5 = 62)
} else {

It shows an error: Unexpected Number
What's wrong with it?



the FUNCTION talk

var myFunc = function( param1, param2) {
       //Begin of  anonymous FUNCTION-BODY
       //VARIABLE -myFunc- has an -anonymous function- assigned
       //this -anonymous function- has 2 PARAMETERS param1 and param2
       //param1 and param2 PARAMETERS are used 
       //as -local- VARIABLES throughout the FUNCTION-BODY

      console.log( param1 + " and " + param2 ) ;

      //End of anonymous FUNCTION-BODY

If you want to call/execute the anonymous function
you will have to add a pair of parentheses to the variable myFunc
As the anonymous function was defined
as having 2 parameters
you have to provide 2 arguments
in our case 2 string VALUES "Alena" and "Lauren"

some quotes from the outer-world:

**argument is the value/variable/reference being passed in,
parameter is the receiving variable used within the function/block**


**"parameters" are called "formal parameters",
while "arguments" are called "actual parameters".**



If you create a variable
the variable-name should start with a =lowercase= character
Please read the code-convention

In the definition of your question function
you have to use a parameter instead of an argument

In the condition of your IF-statement
you will have to use a comparison operator === or ==
and not as you do, using an assignment operator =


google search
== the Book ==
javascript [your question]

== discussions / opinions ==
javascript [your question]

== guidance ==