I am Using Express framework.
The problem I am facing is that I have created a var duration and when a request at '/' is received it simply find the total duration of given video and save to that variable but at the end I want to show that variable but instead of showing that variable value it shows nothing and in console in shows undefined...
can anyone please please help me to tun this code synchronously instead of asynchronous...
thanks alot