How to make an allert when element is clicked : I have really simple problem. I want to make an script what appears alert when i I click on image. My html is:

    <!DOCTYPE html>
    <html>
      <head>
        <meta charset="utf-8">
        <link rel="stylesheet" href="style.css" \>
        <script src="jquery-3.2.1.min.js" type="text/javascript"></script>
        <script src="lightbox.js" type="text/javascript" \>
        </script>
      </head>
      <body>
        <img class="img" src="http://lorempixel.com/400/200/"></img>
      </body>
    </html>

and js:

    $("img").click(function() {
      allert("dadadad");
    });

im new to javascript so all tips will be helpful