Test your basic knowledge |

Javascript Basics

Subject : it-skills
Instructions:
  • Answer 25 questions in 10 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. The valid characters for an identifier in JavaScript: Letters - Numbers - ________ and Dollar Signs






2. Math object method used to return a random number






3. To code an If statement in JavaScript






4. To code a while statement in JavaScript






5. Command to display a prompt






6. The string escape sequence to start a new line in JavaScript






7. To test that a variable contains a valid number






8. The string escape sequence to insert a single quote in JavaScript


9. To create a function in JavaScript






10. To display a confirmation






11. To create a function that returns a value in JavaScript






12. To code a for statement in JavaScript






13. The string escape sequence to insert a tab in JavaScript






14. To get the value or the currently selected item for lists






15. Math object method used to return the absolute value of a given number






16. Math object method used to return a given number raised to a given power






17. To alter the value of the text element in a span tag






18. This returns only True or false values






19. To get the current value for textboxes






20. To get the current checked status of the control for radio buttons






21. The syntax of a conditional operator






22. The two methods common to most controls: ______ //Brings focus to the control blur //Removes focus from the control






23. The identity operator for equals






24. A _______ variable can be changed and accessed from within and without a function or object.






25. To code a button.onclick event handler