How to decode url in JavaScript

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

decodeURIComponent(search);
hello world?