different script location not work

different script location not work

  1. <script type="text/javascript">

  2.  community = "Javascript Indonesian";

    </script>

    <script type="text/javascript">
      
    alert(community);
  3. </script>

how to solve that ?

thanks 
fird0s