I have a nested array which is temp and i don't know how to replay it as a table when I try to render the data it does not show up at all.
var express = require('express');
var app = express();
var PORT = 3000;
// View engine setup
app.set('view engine', 'ejs');
// With middleware
app.use('/', function(req, res, next){
let temp = [["hi",10],["cool",5],["nice",8],["neat", 5]]
res.render('User', { title: 'Express', data: temp})
next();
});
app.get('/', function(req, res){
console.log("Render Working")
});
app.listen(PORT, function(err){
if (err) console.log(err);
console.log("Server listening on PORT", PORT);
});