Title Text




                    function foo1()
                    {
                      return {
                          bar: "hello"
                      };
                    }
                    
                    function foo2()
                    {
                      return
                      {
                          bar: "hello"
                      };
                    }

What is the Output of foo1() and foo2() ?




    for (var i = 0; i < 5; i++) {
      setTimeout(function() { console.log(i); }, i * 1000 );
    }

What is the Output of above function ?

To update the state of component on Props change, which is the best place to update ?




                  console.log(0.1 + 0.2);
                  console.log(0.1 + 0.2 == 0.3);

What is the Output two consoles ?

Copy of Js Quiz

By Chetan Hegde

Copy of Js Quiz

  • 184