Problem 28. Write a program to change the url to google.com (Redirection) if user enters a number greater than 4.

let num = prompt("enter the number");
num = Number.parseInt(num);
                    
if (num > 4)
    location.href="https://google.com";