Novalnet Interview Question

write a programme in javascript to find out 2nd largest number