i have been trying to loop some variable my express, many thing i have manipulated and do some browsing but still not looking for solving.
here is my variable
var data = {
response : 1,
messages : "found the result",
data : rows
};
how do i loop that? by the way forget about rows, it is the rows after i query the database.
i've been trying this looping
for(var i in data){
console.log(data[i]);
}
via Abdan Syakuro
No comments:
Post a Comment