<!DOCTYPE html> <html> <body> <p>script element is used to add javascript in a page. For example, we make a function of cube in javascript.</p> <script> var x=5; function product(x){ document.write(x*x*x); } product(5); </script> </body> </html>
Run
×
Share