```
var extension = input.split(".").pop();
```