How to use js in netbeans

i want to know where i have to write the code for arthimetic operation in js file and how i can use js in netbeans. i am not able to find on internet how i can do that.please help me

Follow this steps inorder to get started using js in netbeans