K
K
Karpkarp2019-08-01 10:39:55
Eclipse
Karpkarp, 2019-08-01 10:39:55

How to properly write JS array in Eclipse?

Hello.
I study JS and work in Eclipse. I used to work in sublines and visual studio and always made arrays like this.
let names = ["Катя", "Вова", "Таня"];
But in eclipse, this method throws an error and requires the correct type syntax
int[] nums = new int[] { 1, 2, 3, 5 };

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2019-08-01
@Karpkarp

What nonsense?
int[] nums = new int[] { 1, 2, 3, 5 };- this is not JS syntax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question