Problem in the working of the evaluation function

As per, the assignment given by sir in the lecture, I was able to encode, encrypt and decrypt the code entered in the text area. However, I have not been able to publish the evaluated result using the eval function.

Please look into the given repo for the code I have done.

Hi @Charu510,
You need to pass decryptQueryParams as a parameter as well to the HTTP Get request.
It is supposed to be done like below:

app.get('/eval', decryptQueryParams, decodeQueryBase64, (req, res) => {
    console.log(req.query)

    // TODO: eval the code actually
    res.send('=========== eval result =========')
})

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.