- 1

What is the value of x after the following code?

right ans is 16

21st Jan 2020, 4:57 AM
Divyanshu Kumar
2 Answers
+ 5
Kindly share the code.
21st Jan 2020, 4:58 AM
Avinesh
Avinesh - avatar
0
let x = 0; class Test extends React.Component { componentDidMount() { x+=3; } render() { return null; } }
5th Nov 2022, 4:58 PM
Gungun Gupta