Consider parsing a URL with the following code snippet?
var reg = /(\w+):\/\/([\w.]+)\/(\S*)/; var url = "http://www.myblog.com/"; var result = url.match(reg); if (result != null) { var path = result[1]; }
Correct Answer: http
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions