cyberfly
7/25/2017 - 1:03 AM

Javascript function default parameter

Javascript function default parameter

function read_file(file, delete_after) {
    delete_after = delete_after || "my default here";
    //rest of code
}