Answer the question
In order to leave comments, you need to log in
How to connect js file to js file?
And so I'm trying to connect a js file to a js file and I've seen how libraries are connected, but for some reason it doesn't work for me.
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>
Answer the question
In order to leave comments, you need to log in
one-time, when data comes from import,Then it’s quite banal,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question