0
I started very recently to learn about js, and I’m having trouble calling one. js external to my html page, I searched in several places but found nothing other than the error that the browser claims to have a 'Uncaught Syntaxerror: Missing ) after argument list' and I don’t know what to do. I’m sorry if the question comes out a little unnatural or strange, it’s my first time here. The contents of the archive aula01.js is just below.
<html lang="pt-br">
<head>
<meta charset="utf-8"/>
<title>Aula 01-JS</title>
</head>
<body>
<script type="text/javascript" src="aula01.js" ></script>
</body>
</html>
Conteúdo do arquivo .js
alert('Esse é o meu primeiro código JS';
Is aula01.js in the same folder as your HTML? What is the content of this aula01.js file?
– Daniel Mendes
Yes files are in the same folder, and the aula01.js file has an Alert command
– Chadii
Edit the question and place its contents (js), please.
– Daniel Mendes
All right, I edited.
– Chadii
Good afternoon, check the function syntax and you will see that the error warning itself is giving the solution...
– MagicHat
Thank you to vcs tmb and good afternoon
– Chadii