https://stackoverflow.com/questions/44968083/how-to-replace-everything-with-blank-after-question-mark-in-a-string

How to replace everything with blank after question mark in a string? https://stackoverflow.com/questions/44968083/how-to-replace-everything-with-blank-after-question-mark-in-a-string

JavaScript

var str = "/root/Users?SkillId=201;";
    var str = str.substring(str.indexOf("?"), 5 );
    alert(str);