How can I get query string values in JavaScript?

How can I get query string values in JavaScript?

var name = '@Request.QueryString["name"]';

2020-02-06