Skip to content

Instantly share code, notes, and snippets.

@supreettare
Last active November 26, 2019 15:51
Show Gist options
  • Select an option

  • Save supreettare/8ec765dbdbe45d417a9cf7060fa828a1 to your computer and use it in GitHub Desktop.

Select an option

Save supreettare/8ec765dbdbe45d417a9cf7060fa828a1 to your computer and use it in GitHub Desktop.
alert(7 + '7' + '7');
alert(7 + 7 + '7');
alert(7 + '7' );
alert('7' + 7 + 7);
@sajijohn80
Copy link

Hi Nitin...Could you please provide an explanation for alert('7' + 7 + 7) results.

@saprevarun
Copy link

777
147
77
777

<script> alert(7 + '7' + '7'); alert(7 + 7 + '7'); alert(7 + '7' ); alert('7' + 7 + 7); </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment