const func = () => {
// Refactor this to be its own function
newFunction();
 
function newFunction() {
const randomPercentage = `${(Math.random() * 100).toFixed(2)}%`;
 
console.log(randomPercentage);
}
};
 
func()
Code will run automatically after changes.
Code runs in an isolated environment.