NEW
Font size
WorksheetsJavascript-react-redux
Total questions: 15
Worksheet time: 15mins
Which of the following is the correct data flow sequence of Reuxflux concept?
A
B
C
D
.............. helps react for keeping their data unidirectional.
JSX
State
Virtual DOM
Props
Which prototype function cannot be used in a pure function
Slice
Concat
Push
Map
What will happend when you don't specify the second parameter in an Effect
It gets never triggered
It gets triggered on every render
It gets triggered only on first render
Gives as Exception
const [x, y] = useState(0) -> what is the y
Setter function
Getter function (state variable)
What is the output
[[1, 2, 3, 4, 5]]
[1, 2, 3, 4, 5]
1
[1]
What is the output
10, 10
10, 11
11, 11
11, 12
What is the output
[]
[null, null, null]
[undefined, undefined, undefined]
[ 3 x empty ]
console.log(typeof typeof 1)
"number"
"string"
"object"
"undefined"
What is the event.target when clicking the button?
Outer <div>
Inner <div>
<button>
All elements together
What is the output
"Lydia"
"myName"
undefined
ReferenceError
What is the output
{ default: function default(), name: "Lydia" }
{ default: function default() }
{ default: "Hello world", name: "Lydia" }own
Global object of module.js
What is the output
[1, 2, 3, 4, 5]
[1, 2, 3, 5]
[1, 2, 3, 4]
Error
What is the output
We have to buy bananas!
We don't have to buy bananas
undefined
1
What is the output
1, 2, 3
{1: 1} {2: 2} {3: 3}
{ 1: undefined } undefined undefined
undefined undefined undefined
