Can all operator return anything in javascript ?? | Sololearn: Learn to code for FREE!

0

Can all operator return anything in javascript ??

8/4/2021 4:30:58 PM

Aniket Ganguly

16 Answers

New Answer

-3

Not anything, they just return the result of the first operand using the operator with second operand

-1

What does spread operator return ??

-1

The spread operator returns all values of the array of string

-1

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax

-1

If spread operator return something then when I write this code I got syntax error ...... Var array=["aniket",3,4]; Var array1=...array; Console.log(array1); // unexpected token ... is not defiend (I got this error)

-1

What is shown if you use it like this Console.log((...array));

-1

I got syntex error ... is not defiend

-1

Let me try

-1

-1

It's [...array]

-1

Tell me ur whatsapp no??

-1

https://www.geeksforgeeks.org/javascript-spread-operator/

-1

I don't have WhatsApp

-1

Can I know ur whatsapp number ??

-1

Insta or anything

-2

There should be square brackets