Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

javascript 5. A function _________________________ doesn’t have to be coded befo

ID: 3826820 • Letter: J

Question

javascript

5. A function _________________________ doesn’t have to be coded before the statements that call it.

6. The ____________________ method of a Document node retrieves an array of all the elements with the specified tag name.

7. The ____________________ method of the Element interface returns true if the element has the attribute that’s specified in the parameter.

8. For a check box, you can use the ___________________ property to test whether the box is checked.

9. After the data in a form has passed all of the validity tests, you can submit the form to the server by using the submit method of the ____________________.

10. The _______________________ event occurs when the focus leaves a control.

11. After you check to make sure that the user interface of a JavaScript application is the way you want it, you should test the application with ____________________ data.

12. A __________________ error violates the rules for how JavaScript statements must be written.

13. One way to resolve the debugging problems that can result from the imprecision of floating-point arithmetic is to _____________________ the results of your calculations.

14. The ___________________ property of the Number object returns the largest positive value that JavaScript can represent.

15. In JavaScript, ______________________ represents a value that isn’t a valid number.

16. The _________________ method of the Number object returns the string for a number with base 10 as the default.

17. The _________________ property of a string returns the number of characters in the string.

18. The ______________________ operator returns a true value if the expression on its left is greater than or equal to the expression on its right.

19. The ______________________ operator returns a true value when the expressions on both sides of the operator are true.

20. When two conditional expresssions are connected by the && operator, the second expression isn’t evaluated if the first expression is ____________________.

21. The ______________________ operator returns the middle operand if the first operand is true, and the last operand if the first operand is false. It can also be rewritten as an if statement.

22. The statements in a for-in loop are processed once for each __________________ value of an array.

23. The ___________________ method of an array can be used to concatenate the elements of the array into a single string.

24. The ______________________ method of a String object separates a string into an array of elements based on a specified separator character.

25. To access an element in an array of arrays, you need to use two __________________.

Explanation / Answer

Hi, I have answered first 7 Questions.

Please report others in separate post.

5. A function defination doesn’t have to be coded before the statements that call it.
6. The getElementsByTagName() method of a Document node retrieves an array of all the elements with the specified tag name.
7. The hasAttribute() method of the Element interface returns true if the element has the attribute that’s specified in the parameter.
8. For a check box, you can use the checked property to test whether the box is checked.
9. After the data in a form has passed all of the validity tests, you can submit the form to the server by using the submit method of the form.
10. The onfocusout / onblur _ event occurs when the focus leaves a control.
11. After you check to make sure that the user interface of a JavaScript application is the way you want it, you should test the application with sample data.
12. A syntax error violates the rules for how JavaScript statements must be written.