WPT Mock
WPT Mock
16. Which is the function that calls another function after a time interval
Answers
1. setTimeout()
2. setTime()
3. timeSet()
4. callAfter()
17. In the below notation, the employee is of type {"Employee": ["Amy", "Bob", "John"]}
Answers
1. Not a valid Json string
2. Array
3. Class
4. Object
22. Which of the following command will show the version of Node?
Answers
1. $ npm --version
2. $ npm getVersion
3. $ node --version
4. $ node getVersion
28. Something that happened in our application that we can respond to.
Answers
1. events
2. actions
3. procedures
4. callback
37. Consider the following code from React Route, What do you call:id in the path prop?
<Route path="/:id" />
Answers
1. This is a route modal
2. This is a route parameter
3. This is a route splitter
4. This is a route link
39. Why might you use useReducer over useState in React component?
Answers
1. When you need to manage more complex state in an app
2. When you want to replace redux
3. When you want to improve performance
4. When you want to break your production app
40. What do you call a React component that catches JavaScript errors anywhere in the
child component tree?
Answers
1. error bosses
2. error catchers
3. error helpers
4. error boundaries