DRAG DROP
You are developing an online shopping application that accepts credit cards for payment.
If the credit card number is invalid, the application must:
Generate an error
Assign “200” to the error number
Assign “Invalid” to the error description
You need to write the code that meets the requirements.
How should you write the code? (To answer, drag the appropriate code segment or
segments to the correct location in the answer area. Each code segment may be used once,
more than once, or not at all. You may need to drag the split bar between panes or scroll to
view content.)

Explanation:
http://www.w3schools.com/html/html5_new_elements.asp
is it correct or message goes first?
0
0
https://msdn.microsoft.com/en-us/library/85fscz6h(v=vs.94).aspx
However the number argument is nonstandard and only supported by IE and should not be used in public websites.
0
0
This is another terrible question which answer is just plain wrong. When you create a new Error object there are no overloads. It only gives you the possibility of entering a description.
var objErr = new Error(“ErrorMessage”);
There is no overload for a number!
0
0