How to pass JSON data from server to client side and use the data in Javscript? : I would like to pass a JSON from server side to client side in Node.js. On the client side I want to use them in Javascript then.
What I tried so far:

```
app.get('/test', function (req, res) {
        let data = {
            "questions":{
                "5-2?":[
                    {
                        "ans1":"3"
                    },
                    {
                        "ans2":"8"
                    },
                ],
                "1+2":[
                    {
                        "ans1":"3"
                    },
                    {
                        "ans2":"1"
                    }
                ]
            }
        };
        res.render('test', { data: data });
});
```

In my pug file I want to use that data with Javscript like this:

```
script
    console.log(!{data});
```