Chiyo wants to open a new window with JavaScript, but she repeatedly receives an error message. She reviews her code, as shown: open ("http://www.prolific.com ", "Pro Window" , "toolbar = 1 ,location = 1 ,menubar = 1 , scrollbars = 1 ,status = 1 ,resizable = 1"); Which one of the following choices shows how Chiyo should rewrite this line of code so that no errors result when it is executed?
_________ is used to associate an object's name with the object's properties or methods.
Regarding cookies: If the expires attribute is not used, when will the cookie expire?
Which is the JavaScript property that is used to inform a script that an image has finished loading?
function empObject(name, age, department) {
this.name = name;
this.age = age;
this.department = department;
this.showOne = showOne;
}
The code above Defines a constructor function for a custom object named empObject. It contains three properties: name, age, and department. It contains one method: showOne
__________ is used frequently in JavaScript to combine text strings, especially in conjunction with prompt() and alert().