R
R
ras_gan2020-04-24 11:47:47
JavaScript
ras_gan, 2020-04-24 11:47:47

Why does alert() output undefined?

<html>
  <body>
    <script>
      var name, admin;
      name = "John";
      name = admin;
      alert(admin);
    </script>
  </body>
</html>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question