This is my code for callback function in javascript:
callback(
undefined,
body.current.weather_descriptions[0] +
"." +
"It is currently " +
body.current.temperature +
" degrees. It feels like " +
body.current.feelslike +
" degrees. There is " +
body.current.precip +
"% chance of rain."
);
My desired output is:
Varanasi, Uttar Pradesh, India
Partly cloudy.
It is currently 26 degrees.
It feels like 26 degrees.
There is 0% chance of rain.
But my output coming is:
Varanasi, Uttar Pradesh, India
Partly cloudy.It is currently 26 degrees. It feels like 26 degrees. There is 0% chance of rain.
I tried many things but not getting desired output, can you help ?