can i use java script in my html file

hello every one !

i want to know something.can i permitted to write a inline java script in inline.i mean ,can i able to write java script in my index.html file with in html body tag ? if i use the script is there any problem i have to face for my theme approval?Thank you every one for give your valuable time and comments.

You shouldn’t be using inline scripts or styling if it’s at all avoidable

Yes You can but it will be better that if you can minify the javascript file or download the minified version of that code.