1
1
13-Floky2018-07-20 20:02:52
Node.js
13-Floky, 2018-07-20 20:02:52

How to create an array of NODEJS links?

I prescribe How to insert here Site_address2, Site_address3 Ie, how to create a variable with several addresses or how to create an array in a variable to put several sites there?
var URL = 'Адрес_сайта';

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
McBernar, 2018-07-20
@McBernar

Just like in JS.
let urls = ['site.com', 'site2.com'];

C
CODER541, 2018-07-20
@CODER541

If I understand you correctly then

let arr=[]
var site1='google.com'
var site2='toster.ru'
arr.push(site1) 
arr.push(site2)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question