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 02 to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. function Student(someName) { fullname=someName;
}
B. function Student (someName) { var fullname=someName;
}
C. function Student (fullname) {
This.fullname=fullname;
}
D. function Student (someName) { this.fullname=someName;
}
BD this not This