+ 1

Can't I write JavaScript code any where of page?

16th May 2017, 1:08 AM
Shafayat Hossain
Shafayat Hossain - avatar
2 Answers
+ 2
no you have to write JavaScript inside the script tag. <script> //your js code </script>
16th May 2017, 1:57 AM
MR Programmer
MR Programmer - avatar
+ 2
You can, as long as it's inside the script tag <script>//js code</script>
16th May 2017, 2:20 AM
Sabrina Aviles