I'm confused how AMP supports author written javascript. I learned from the doc that AMP disable author written javascript, but why does it work when I directly insert javascript code in tag? simple as the code below works fine on AMP page. Other code like I'm inserting a snippet of javascript code in tag to load a service works fine too. Thanks.
<script>
alert("hi");
</script>