JavaScript Programming Professional Certification exam answers 2026: This page lists all 100 questions of the official JavaScript Programming Professional Certification exam by Itronix Solutions, each with its four answer options and the correct answer highlighted in green. Use it to revise every topic before you attempt the test and earn your verifiable certificate.
About this certification: Test your JavaScript fundamentals: variables, data types, functions, arrays, DOM, events, promises and ES6 features.
| Certification | JavaScript Programming Professional Certification |
| Provider | Itronix Solutions |
| Category | Programming & Development |
| Total questions | 100 multiple-choice questions |
| Marks | 1 mark per question (100 marks) |
| Passing score | 80% (80 out of 100) |
| Retake | Available if you do not pass |
| Certificate | Verifiable online certificate |
Take the exam: JavaScript Programming Professional Certification on Itronix Solutions. See every other Itronix exam in our complete list of Itronix certification answers.
JavaScript Programming Exam Questions and Answers
Questions 1 to 25
1. Which keyword declares a block-scoped variable that can be reassigned?
Correct answer: A. let
2. What does typeof null return in JavaScript?
Correct answer: D. object
3. Which operator checks both value and type equality?
Correct answer: D. ===
4. Which method adds an element to the end of an array?
Correct answer: D. push()
5. What is the output of 2 + ‘2’ in JavaScript?
Correct answer: A. 22
6. Which function selects the first element matching a CSS selector?
Correct answer: C. document.querySelector()
7. Arrow functions were introduced in:
Correct answer: C. ES6 (ES2015)
8. Which method converts a JSON string into a JavaScript object?
Correct answer: B. JSON.parse()
9. A Promise in JavaScript represents:
Correct answer: C. The eventual result of an asynchronous operation
10. Which keyword pauses an async function until a Promise settles?
Correct answer: A. await
11. Which array method creates a new array by transforming each element?
Correct answer: C. map()
12. What does the filter() method return?
Correct answer: C. A new array with elements that pass a test
13. How do you write a single-line comment in JavaScript?
Correct answer: D. // comment
14. Which event fires when a user clicks an element?
Correct answer: C. click
15. What is the value of a declared but unassigned variable?
Correct answer: A. undefined
16. Template literals are written using:
Correct answer: B. Backticks
17. Which method is used to attach an event handler to an element?
Correct answer: C. addEventListener()
18. What does NaN stand for?
Correct answer: D. Not a Number
19. Which statement is used to exit a loop immediately?
Correct answer: A. break
20. localStorage data in a browser:
Correct answer: B. Persists until it is explicitly cleared
21. JavaScript is mainly used to:
Correct answer: B. Add interactivity to web pages and build applications
22. JavaScript runs in browsers and also on servers using:
Correct answer: B. Node.js
23. Which keyword declares a block-scoped variable that can be reassigned?
Correct answer: A. let
24. Which keyword declares a block-scoped constant binding?
Correct answer: A. const
25. var declarations are:
Correct answer: D. Function-scoped and hoisted
Questions 26 to 50
26. typeof "hello" returns:
Correct answer: C. "string"
27. typeof null returns:
Correct answer: B. "object"
28. undefined means:
Correct answer: B. A variable has been declared but not assigned a value
29. null represents:
Correct answer: D. An intentional absence of a value
30. The strict equality operator is:
Correct answer: B. ===
31. "5" == 5 evaluates to:
Correct answer: C. true
32. "5" === 5 evaluates to:
Correct answer: C. false
33. NaN stands for:
Correct answer: B. Not a Number
34. Array.push() adds an element:
Correct answer: A. To the end of an array
35. Array.pop() removes:
Correct answer: B. The last element
36. Array.shift() removes:
Correct answer: C. The first element
37. Array.map() returns:
Correct answer: B. A new array with each element transformed
38. Array.filter() returns:
Correct answer: D. A new array with elements that pass a test
39. Array.reduce() is used to:
Correct answer: A. Reduce an array to a single value
40. Array.find() returns:
Correct answer: A. The first element matching a condition
41. Array.includes() returns:
Correct answer: B. Whether an array contains a value
42. Object properties can be accessed using:
Correct answer: D. Dot notation or bracket notation
43. JSON stands for:
Correct answer: A. JavaScript Object Notation
44. JSON.parse() converts:
Correct answer: A. A JSON string into a JavaScript value
45. JSON.stringify() converts:
Correct answer: A. A JavaScript value into a JSON string
46. An arrow function is written as:
Correct answer: A. (a, b) => a + b
47. Template literals use:
Correct answer: B. Backticks and ${} for interpolation
48. The spread operator … can:
Correct answer: A. Expand arrays or objects into elements
49. Destructuring allows:
Correct answer: A. Extracting values from arrays or objects into variables
50. A closure is:
Correct answer: B. A function that remembers variables from its outer scope
Questions 51 to 75
51. Hoisting means:
Correct answer: B. Declarations are moved to the top of their scope during compilation
52. The this keyword refers to:
Correct answer: D. The object that is executing the current function (context-dependent)
53. Arrow functions differ by:
Correct answer: B. Not having their own this binding
54. The DOM is:
Correct answer: C. A tree representation of the web page that scripts can manipulate
55. document.getElementById() returns:
Correct answer: C. The element with the specified ID
56. document.querySelector() returns:
Correct answer: A. The first element matching a CSS selector
57. addEventListener() is used to:
Correct answer: C. Attach an event handler to an element
58. event.preventDefault() is used to:
Correct answer: A. Stop the browser’s default action for an event
59. Event bubbling means:
Correct answer: D. Events propagate from the target up through ancestors
60. innerHTML sets or gets:
Correct answer: D. The HTML content inside an element
61. textContent is safer than innerHTML for user input because:
Correct answer: D. It does not parse HTML, reducing XSS risk
62. Array.slice() returns:
Correct answer: B. A shallow copy of a portion of an array
63. String.trim() removes:
Correct answer: B. Whitespace from both ends of a string
64. JavaScript is single-threaded and uses:
Correct answer: D. An event loop for asynchronous operations
65. setTimeout() is used to:
Correct answer: A. Run a function after a delay
66. setInterval() is used to:
Correct answer: B. Run a function repeatedly at intervals
67. A Promise represents:
Correct answer: B. A value that may be available now, later or never
68. A Promise can be in states:
Correct answer: A. Pending, fulfilled or rejected
69. async/await is used to:
Correct answer: D. Write asynchronous code that reads like synchronous code
70. await can be used:
Correct answer: B. Inside async functions (and top-level in modules)
71. fetch() is used to:
Correct answer: C. Make HTTP requests
72. try…catch is used to:
Correct answer: B. Handle errors
73. ES6 modules use:
Correct answer: B. import and export
74. A class in JavaScript is:
Correct answer: C. Syntactic sugar over prototype-based inheritance
75. JavaScript inheritance is based on:
Correct answer: A. Prototypes
Questions 76 to 100
76. The constructor method in a class:
Correct answer: B. Initialises new objects
77. Optional chaining (?.) allows:
Correct answer: D. Safely accessing nested properties that may be null or undefined
78. Nullish coalescing (??) returns the right side when the left is:
Correct answer: B. null or undefined
79. Truthy values include:
Correct answer: D. Non-empty strings and non-zero numbers
80. Falsy values include:
Correct answer: B. 0, empty string, null, undefined, NaN and false
81. Array.forEach() is used to:
Correct answer: D. Execute a function for each element
82. Set in JavaScript stores:
Correct answer: D. Unique values
83. Map in JavaScript stores:
Correct answer: B. Key-value pairs with keys of any type
84. console.log() is used to:
Correct answer: B. Print messages to the browser console
85. Strict mode ("use strict") helps by:
Correct answer: A. Catching common coding mistakes and unsafe actions
86. npm is:
Correct answer: D. The package manager for Node.js
87. Bundlers like Webpack or Vite are used to:
Correct answer: A. Bundle and optimise modules for the browser
88. TypeScript adds:
Correct answer: B. Static types to JavaScript
89. Debouncing is used to:
Correct answer: C. Limit how often a function runs during rapid events
90. CORS controls:
Correct answer: B. Which origins can access resources from a server
91. XSS can be reduced by:
Correct answer: A. Escaping or sanitising untrusted output
92. Frameworks such as React, Angular and Vue help to:
Correct answer: D. Build complex user interfaces
93. Array.sort() without a compare function sorts:
Correct answer: A. Elements as strings
94. The === operator checks:
Correct answer: A. Value and type equality
95. JavaScript was created by:
Correct answer: D. Brendan Eich
96. ECMAScript is:
Correct answer: C. The standard specification that JavaScript implements
97. The main role of JavaScript on the web is to:
Correct answer: D. Make pages dynamic and interactive
98. String.split() returns:
Correct answer: D. An array of substrings
99. Array.length gives:
Correct answer: D. The number of elements in an array
100. parseInt("42px") returns:
Correct answer: A. 42
How to Pass the JavaScript Programming Exam
- Read every question carefully; most options look similar, so look for the most precise answer.
- Revise the questions above topic by topic rather than memorising letters, because option order can change in the live test.
- You need 80 correct answers out of 100 to pass, so aim to understand at least 85 to stay safe.
- If you do not clear it on the first attempt, review the questions you missed and use the retake option.
Frequently Asked Questions
How many questions are in the JavaScript Programming Professional Certification exam?
The exam has 100 multiple-choice questions, each worth 1 mark.
What is the passing score for the JavaScript Programming Professional Certification?
You need at least 80% (80 out of 100) to pass and receive the certificate.
Can I retake the JavaScript Programming Professional Certification exam?
Yes. If you score below 80%, you can retry the test after reviewing the topics.
Is the Itronix certificate verifiable?
Yes. Every certificate issued by Itronix Solutions has a unique ID that can be checked on the Itronix verify-certificate page.
More Programming & Development Certification Answers
- Advanced Java Certification Exam Answers
- Android Development Certification Exam Answers
- Automation Testing Certification Exam Answers
- Blockchain Certification Exam Answers
- C & C++ Programming Language Certification Exam Answers
- Certified Quality Engineer Professional Certification Exam Answers
- Core Java Programming Professional Certification Exam Answers
- Data Structures and Algorithm Certification Exam Answers
Disclaimer: These answers are provided for learning and revision. Questions and answers are checked regularly; if you find a mistake, let us know in the comments.
Priya Dogra – Free Certifications, Exam Answers & Career Guides Free certification exam answers, courses, scholarships and career guides for learners worldwide