External javascript not working? -


i started learning javascript 30 minutes ago. i'm doing online course , gave me code example. person in video did exact same thing, works me when inline not external. .js name right , they're in same folder.

the html:

<!doctype html> <html lang="en"> <head>   <meta charset="utf-8">   <title>javascript basics</title>       <script src=“cripts.js”></script>  </head> <body>   <div class="container">   <h1>where place javascript code.</h1>   </div> </body> </html> 

and js:

alert("you"); 

nothing appears me. i've tried make work, including different browsers. computer or did make simple mistake?

it looks quotes invalid :') beginner move! simple fix. note should ", happens when copying , pasting code!

<script src="cripts.js"></script> 

also make sure path , file name correct?! cripts.js sounds suppose scripts.js


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

ruby on rails - ActiveRecord order not working -