How to get File Extension from File Name in JavaScript

How to get File Extension from File Name in JavaScript