Java Duration Get Milliseconds Javascript Interview