READ Free Dumps For Microsoft- 70-480
Question ID 14874 | An HTML page has a CANVAS element.
You need to draw a red rectangle on the CANVAS element dynamically. The rectangle
should resemble the following graphic.
How should you build the code segment? (To answer, drag the appropriate line of code to
the correct location. Each line of code 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.)
|
Option A |
|
Correct Answer | A |
Explanation
Question ID 14875 | You are testing the value of the following variable in JavaScript.
var height = "300";
A block of code must execute if the following conditions are true:
✑ The height variable is set to 300
✑ The height variable is of type string
You need to implement the code to run the test.
Which line of code should you use?
|
Option A | if (height = = 300)
|
Option B | if (height = = "300")
|
Option C | if (height ! "300")
|
Option D | if (height ! = 300)
|
Correct Answer | B |
Explanation Explanation: Use = = to test for equality. Use "300" to test for the string.