assuming i have script.js as:
$(document).ready(function () {
do something
}
and my view is:
<p> Hello </p>
@section scripts{
@{await (some html help tag Load script.js)}
}
i want it to be rendered as this output:
<p> Hello </p>
<script>
$(document).ready(function () {
do something
}
</script>
Is there any razor or HTML helper that output the actual java script into the view?