0

How to push arrays of data In node js

I have html page on page load, will call a function which will have two arrays. that data should be pushed.

7th Jan 2018, 11:57 AM
Bhavani Sankar
Bhavani Sankar - avatar
4 Respuestas
+ 4
Don't get what you mean. Please elaborate more.
7th Jan 2018, 12:55 PM
Calviղ
Calviղ - avatar
+ 4
var arr = []; // create an empty array arr.push(username); // arr[0] contains username arr.push(password); // arr[1] contains password
7th Jan 2018, 1:14 PM
Calviղ
Calviղ - avatar
+ 1
I have a html login page with username and password. i have an array which will have the username and password. the validation should be done on the server side with the values present in the array and the values should be displayed on another page. I want to do this by pushing this usernames and passwords into array. so how I could I do it
7th Jan 2018, 1:06 PM
Bhavani Sankar
Bhavani Sankar - avatar
+ 1
Thank u I got it
7th Jan 2018, 4:49 PM
Bhavani Sankar
Bhavani Sankar - avatar