• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
console.log([..."hello"])
  1. 'hello'
  2. Undefined
  3. ['h', 'e', 'l', 'l', 'o']
  4. 'lo'
Explanation
  • The spread operator ... in JavaScript expands iterable objects like strings or arrays.
  • "hello" is a string, which is iterable.
  • [..."hello"] spreads each character into a new array.
  • Resulting array: ['h', 'e', 'l', 'l', 'o'].
  • It is not a single string or 'lo', and definitely not undefined.
  • Related MCQs

    انٹرنیٹ میں منسلک کلائنٹ کو کون سا پروٹوکول آئی پی ایڈریس تفویض کرتا ہے؟
    1. DHPP
    2. DHHP
    3. DHCP
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    انٹرنیٹ کا باپ کسے کہا جاتا ہے؟
    1. Vint Cerf
    2. Charles Babbage
    3. Tim Berners Lee
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر اور انٹرنیٹ کے استعمال سے کیے جانے والے جرائم کو کیا کہتے ہیں؟
    1. Cybercrime
    2. Crime against person
    3. Violent crime
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    سائبر سیکیورٹی میں کون سا مالویئر صارف کی فائلوں کو لاک کرکے انہیں واپس حاصل کرنے کے لیے رقم کا مطالبہ کرتا ہے؟
    1. Ransomware
    2. Virus
    3. Worm
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر نیٹ ورکس میں ڈی این ایس کا بنیادی مقصد کیا ہے؟
    1. Manage network hardware
    2. Translate domain names to IP addresses
    3. Establish secure connections
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com