var file = "test.zip" var fileExtension = file.substring(file.lastIndexOf(".")+1) if(fileExtension === "zip") {alert('its a zip file');} else {alert('its not a zip file');}
Login to post response