function sayHi(user) {
return `Hello, ${user}!`;
}
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<script type="text/javascript" src="engine.js"></script>
<script type="text/javascript">
sayHI("Hello");
</script>
</body>
</html>