If a variable stores the value false, then the variable:
If a variable stores the value false, then the variable: is of the Logical type. is of the Math type. is of the Boolean type. will no longer be used in…
If a variable stores the value false, then the variable: is of the Logical type. is of the Math type. is of the Boolean type. will no longer be used in…
By default, JavaScript allows us to write to an undeclared variable (it declares it implicitly for us). If we want the interpreter to treat such a situation as an error,…
In the daysOfWeek variable, we place an array with the names of the days of the week. To reverse the order of the array elements, we should call: reverse daysOfWeek; daysOfWeek.invert();…
We can replace the declaration let x = 0x21; with: let x = "0x21" let x = 33; let x = 17; let x = 21; Answers Explanation & Hints: The…
We need to come up with a name for a variable where we will store the age of a user. All of the following variable names are formally correct, but…
In order to check the number of elements of the array stored in the names variable, we call: names.length names.count length of names; names.length(); Answers Explanation & Hints: To check the…
We declare an object called dog, with two fields: age and name: let dog = { age: 5. name: "Axel }; To change the value of…
What is not the task of the interpreter? Transforming the individual commands of the source code into the target form. Creating a runtime environment for the program. Verifying the correctness…
The basic toolkit needed to effectively develop JavaScript code consists of two elements: interpreter, package manager. interpreter, debugger. code editor, interpreter. code editor, debugger. Answers Explanation & Hints: The basic…
What tag do we use in HTML to denote the main part of the document inside which we define the page elements? <body> <head> <content> <main> Answers Explanation & Hints:…
Where will we definitely not be able to execute JavaScript code? Directly in the processor. In a server environment using node.js. On a mobile device. In a web browser. Answers…
The <html> tag indicates the start of the actual HTML document. What tag should appear at the end of the document? <lmth> </html> <html/> <html> Answers Explanation & Hints: The…
The JavaScript code includes the console.log("http://test.org"); command. Its execution will: send a log with information about the currently executed script to the indicated address http://test.org. display on the console information about…
A client-side JavaScript program: runs directly in a web browser and can contain an HTML document inside it. may be embedded inside an HTML document or run standalone in the…
Using JavaScript, we want to display the word "test" in the console. What statement do we use to do this? console (log, "test"); console.log("test"); console("test"); log("test"); Answers Explanation & Hints: To…
In a browser, we want to open a local file by typing the path to it in the address bar. The path must be preceded by: local:/// http:// https:// file:///…
In the browser, we type into the address bar a string starting with file:///. This means that: the rest of the string is the path to the file on our local…
The TypeScript language is: the original name for JavaScript, which has been changed over time. a new language base on JavaScript which, among other things, introduces static typing. an alternative…
Entering about:blank in the address bar of your browser will: open a tab with information about your browser. generate a page with information about the browser's status and send it to…