exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 75 discussion

Actual exam question from Microsoft's 70-480
Question #: 75
Topic #: 4
[All 70-480 Questions]

You are developing an application in HTML5.
You have the following code.

You need to add an additional property to the function definition.
Which line of code should you use?

  • A. NewOrder ["newProperty"] = "newProperty"
  • B. NewOrder. prototype. newProperty = "newProperty"
  • C. this.NewOrder. newProperty = "newProperty"
  • D. NewOrder. newProperty = "newProperty"
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
References:
http://www.w3schools.com/js/js_object_prototypes.asp

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Liza
Highly Voted 5 years, 10 months ago
Correct answer is OPTION B
upvoted 30 times
...
Ranukale
Highly Voted 5 years, 4 months ago
Correct answer is option B
upvoted 8 times
...
alexcode
Most Recent 4 years, 8 months ago
B is correct
upvoted 5 times
...
TonyBezerra
5 years, 5 months ago
The correct answer is B => "Adding Properties and Methods to Objects Sometimes you want to add new properties (or methods) to all existing objects of a given type. Sometimes you want to add new properties (or methods) to an object constructor. Using the prototype Property. The JavaScript prototype property allows you to add new properties to object constructors". This declaration is in the site of W3Schools.com.
upvoted 8 times
...
piroman
5 years, 6 months ago
Correct answer is OPTION D
upvoted 1 times
MrAnderson
5 years, 1 month ago
Incorrect it's B
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...