Yiyang L. answered 09/14/22
Software Engineer Specializing In JavaScript
First question:
In JavaScript, we generally can assign a variable in the following methods:
Hence, option d is correct.
Second question:
This is a question that challenges student's ability to identify the proper HTML tag to link resources. In order to link, and use a JavaScript in a HTML code, you will need to use the <script> tag.
The following code is generally used in the <head> part of the HTML code, where "src" is the abbreviation of source, which takes a string that points to the file location in the local machine.
Hence, the correct answer is B.