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

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..
My Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

www.code-sample.com/. Powered by Blogger.