题目内容

Given the following JavaScript code:var square = { side: 5, area: function() { return this.side*this.side; } };Which of the following expressions evaluates to 25?(i) square.area(ii) square.area()(iii) var p = {side: 5, __proto__: square}; p.area()(iv) square.area.call({side: 5})

A. i and iii
B. ii and iv
C. ii and iii
D. ii, iii, and iv

查看答案
更多问题

Which is FALSE concerning AJAX/XHR vs. non-AJAX interactions?

AJAX requests can be handled with their own separate controller actions
B. In general, the server must rely on explicit hint (like headers) to detect XHR
C. The response to an AJAX request can be any content type (not just HTML)
D. If the server fails to respond to an XHR request, the browser's UI will freeze

If you’ve been assigned to modify legacy code, which statement would make you happiest if true?- 未答复

A. “It was originally developed using Agile techniques"
B. “It is well covered by tests”
C. “It’s nicely structured and easy to read”
D. “Many of the original design documents are available”

Some of the AJAX interactions in Ben Bitdiddle's AJAX-intensive SaaS app "feel sluggish". The likeliest cause is:Slow JavaScript interpreter (for example, users with very old browsers/computers) Slow database queries associated with AJAX actions Network delays due to sending too much data to browser in AJAX responses Can't tell without further information

A. Slow JavaScript interpreter (for example, users with very old browsers/computers)
B. Slow database queries associated with AJAX actions
C. Network delays due to sending too much data to browser in AJAX responses
D. Can't tell without further information

If this form is loaded in a non-JS-aware browser:- 未答复

A. Browser will complain about malformed HTML when page is loaded (server should respect browser version and not send JavaScript)
Browser will complain, but only when form's Submit button clicked
C. The form will be submitted, but without inputs being checked
D. Nothing will happen when submit button is clicked (form won't be submitted)

答案查题题库