{"id":328,"date":"2018-03-16T03:56:18","date_gmt":"2018-03-15T21:56:18","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/mcq\/what-does-the-below-line-do-considering-it-as-the-first-line-in-your-javascript-file-functionalertthis\/"},"modified":"2018-03-16T03:56:18","modified_gmt":"2018-03-15T21:56:18","slug":"what-does-the-below-line-do-considering-it-as-the-first-line-in-your-javascript-file-functionalertthis","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/what-does-the-below-line-do-considering-it-as-the-first-line-in-your-javascript-file-functionalertthis\/","title":{"rendered":"What does the below line do considering it as the first line in your javascript file (function(){alert(this)})();"},"content":{"rendered":"<p>What does the below line do considering it as the first line in your javascript file:<\/p>\n<pre>(function(){\r\n\u00a0 \u00a0 alert(this);\r\n})();<\/pre>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[127],"subject":[17],"class_list":["post-328","mcq","type-mcq","status-publish","hentry","topic-basic-javascript","subject-javascript"],"mcq_note":"<pre>(function(){\r\n\u00a0 \u00a0 alert(this);\r\n})();<\/pre>\r\nConsidering it as the first line in our javascript file it will\u00a0alert with not null value.","mcq_options":[{"right":"no","answer":"Nothing happens"},{"right":"no","answer":"I will see an error"},{"right":"yes","answer":"I will see an alert with not null value"},{"right":"no","answer":"I will see an alert with null value"},{"right":"no","answer":"I will see an alert with undefined value"}],"multi_answers":"no","subject_terms":[{"id":17,"title":"JavaScript","slug":"javascript"}],"topic_terms":[{"id":127,"title":"Basic JavaScript","slug":"basic-javascript"}],"_links":{"self":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq"}],"about":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/types\/mcq"}],"author":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/comments?post=328"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=328"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}