I am new to JavaScript. I have learned that I can make my scripts async by putting the word async in front in the html script tag.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script async src="scripts.js"></script>
</body>
</html>
But I saw in another video that I need to use callbacks/ Promises/ Async-await to make my code async.
const friendlyFunction = async ()=> {
return `Hello`
}
console.log(friendlyFunction)
Is there any difference?