Don't use alert, use console.log()
The code copy is as follows:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function showLog(message){
console.log(message);
}
function test(name){
showLog(name);
}
test("hello");
</script>
</head>
<body>
</body>
</html>
The above is a personal experience. I will share it with you here, friends, please give it a try.