You write the following JavaScript code. (Line numbers are included for reference only.)

You need to write a function that will initialize and encapsulate the member variable full name.
Which are two possible code fragments you could insert at line 02 to achieve this goal? (Each correct
answer presents a complete solution. Choose two.)

Correct Answer: B,D
Explanation/Reference:
Note:
* In JavaScript this always refers to the "owner" of the function we're executing, or rather, to the object that
a function is a method of.
* If you assign a value to variable that has not yet been declared, the variable will automatically be
declared as a GLOBAL variable.
This statement:
carname="Volvo";
Will declare the variable carname as a global variable , even if it is executed inside a function.