Which are two possible code fragments that you can insert at line 02 to achieve the goal?
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 fullname. Which are two possible code fragments that you can insert at line…