JavaScript Quiz code programming languages

Quiz JavaScript Programming Languages


Questions of the day - JavaScript Programming Languages

  1. (function(){ return typeof arguments; })();

  2. object
    array
    arguments
    undefined

  3. var f = function g(){ return 23; }; typeof g();

  4. number
    undefined
    function
    Error

  5. (function(x){ delete x; return x; })(1);

  6. 1
    null
    undefined
    Error

  7. (function f(f){ return typeof f(); })(function(){ return 1; });

  8. number
    undefined
    function
    Error

  9. var foo = { bar: function() { return this.baz; }, baz: 1 }; (function(){ retu

  10. undefined
    object
    number
    function

  11. var f = (function f(){ return "1"; }, function g(){ return 2; })(); typeof f;

  12. string
    number
    function
    undefined

  13. var x = 1; if (function f(){}) { x += typeof f; } x;

  14. 1function
    1
    1undefined
    NaN

  15. var x = [typeof x, typeof y][1]; typeof typeof x;

  16. string
    number
    object
    undefined

  17. (function(foo){ return typeof foo.bar; })({ foo: { bar: 1 } });

  18. object
    undefined
    Error
    number

  19. with (function(x, undefined){}) length;

  20. undefined
    Error
    2
    1



Note : If i am wrong i need your hand to correct me. Please put your thoughts in below comment box, I will update as per you. 

Thank you very much for attending quizzes.

ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
http://www.code-sample.com
http://www.code-sample.xyz

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.