{"id":321,"date":"2018-03-16T18:59:24","date_gmt":"2018-03-16T12:59:24","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/mcq\/destructuring-arrays-in-es6-and-find-out-the-result\/"},"modified":"2018-03-16T18:59:24","modified_gmt":"2018-03-16T12:59:24","slug":"destructuring-arrays-in-es6-and-find-out-the-result","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/destructuring-arrays-in-es6-and-find-out-the-result\/","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(players);<\/pre>\n<p>What is the output of\u00a0<code>consoloe.log(players);<\/code> in your console?<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[155],"subject":[17],"education_level":[],"class_list":["post-321","mcq","type-mcq","status-publish","hentry","topic-ecmascript-6-es6","subject-javascript"],"mcq_note":"The output of\u00a0<code>consoloe.log(players);<\/code> is\u00a0<code>Array [\"Mahmudullah\", \"Mushfiq\", \"Tamim\", \"Rubel\", \"Aftab\", \"Razzaq\", \"Rafiq\"]<\/code>.","mcq_options":[{"right":"no","answer":"Error: players is not defined"},{"right":"no","answer":"object"},{"right":"yes","answer":"<code>Array [\"Mahmudullah\", \"Mushfiq\", \"Tamim\", \"Rubel\", \"Aftab\", \"Razzaq\", \"Rafiq\"]<\/code>"},{"right":"no","answer":"Mahmudullah"},{"right":"no","answer":"Rafiq"}],"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\/321","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=321"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=321"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=321"},{"taxonomy":"education_level","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/education_level?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}