{"id":322,"date":"2018-03-16T18:51:02","date_gmt":"2018-03-16T12:51:02","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/mcq\/destructuring-arrays-in-es6-and-find-out-the-result-2\/"},"modified":"2018-03-16T18:51:02","modified_gmt":"2018-03-16T12:51:02","slug":"destructuring-arrays-in-es6-and-find-out-the-result-2","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/destructuring-arrays-in-es6-and-find-out-the-result-2\/","title":{"rendered":"Destructuring Arrays in es6 and find out the result"},"content":{"rendered":"<pre>const team = [\r\n        'Mashrafi', \r\n        'Sakib', \r\n        'Mahmudullah', \r\n        'Mushfiq', \r\n        'Tamim', \r\n        'Rubel', \r\n        'Aftab', \r\n        'Razzaq', \r\n        'Rafiq'\r\n    ];\r\nconst [captain, assistant, ...players] = team;\r\nconsoloe.log(captain);<\/pre>\n<p>What is the output of\u00a0<code>consoloe.log(captain);<\/code> in your console?<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[155],"subject":[17],"class_list":["post-322","mcq","type-mcq","status-publish","hentry","topic-ecmascript-6-es6","subject-javascript"],"mcq_note":"<pre>const team = ['Mashrafi', 'Sakib', 'Mahmudullah', 'Mushfiq', 'Tamim', 'Rubel', 'Aftab', 'Razzaq', 'Rafiq'];\r\nconst [captain, assistant, ...players] = team;\r\nconsoloe.log(captain);<\/pre>\r\nThe output of\u00a0<code>consoloe.log(captain);<\/code> is\u00a0<code>\"Mashrafi\"<\/code>.","mcq_options":[{"right":"yes","answer":"Mashrafi"},{"right":"no","answer":"Sakib"},{"right":"no","answer":"Error in 2<sup>nd<\/sup> line <code>const [captain, assistant, ...players] = team;<\/code>"},{"right":"no","answer":"Error: captain is not defined"}],"multi_answers":"no","subject_terms":[{"id":17,"title":"JavaScript","slug":"javascript"}],"topic_terms":[{"id":155,"title":"EcmaScript 6 (ES6)","slug":"ecmascript-6-es6"}],"_links":{"self":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq\/322","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=322"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=322"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}