what are media objectives

1 2 3 alert('Hello World') In our HTML Instead of the JavaScript code, we specify the path to our JavaScript file using the src attribute of the script tag. Notice the print statement is inside the main function, which is inside the class definition. // the hello world program The second line within the parenthesis, and then it ends with a semicolon. In javascript, there are 3 different ways you can write hello world. Explanation: document.write () is a JavaScript command that literally writes out whatever you place between the opening and closing parentheses. You can put the tag. Answer: C) document.write (. Whenever we write javascript we make use of the script tag. The JavaScript code in the . Log in, to leave a comment. 2. document.write ('Hello World!'); document.write ('Hello ', 'World', '!'); These both statements will display the string Hello World! This method is used to output the text in the console. For instance: To attach several scripts, use multiple tags: As a rule, only the simplest scripts are put into HTML. You can place the