Novalnet interview question

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