How to decode url in JavaScript

URL
Last updated Dec 18, 2017
const search = "hello%20world%3F";

decodeURIComponent(search);
hello world?