array question.1) [0,1,2,1,1,0,0,2,1,0,0,2].
print this as [0,0,0,0,0,2,2,2,1,1,1,1]
2) javascript and react js interview questions
a)what is closure
b)what is redux
c)what is pure component
d)how can we pass data from one component to another
anws is props and context
e) what is cors