The methods window.altert, window.confirm, and window.prompt are methods of the window object. Which of the following is not true?

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:3 mins read

The methods window.altert, window.confirm, and window.prompt are methods of the window object. Which of the following is not true? The alert, confrim, and prompt methods require an argument specifying the position of…

Continue ReadingThe methods window.altert, window.confirm, and window.prompt are methods of the window object. Which of the following is not true?

The string “12” has been written into the str variable: (let str = “12”;). Then the operations str = +str is performed. As a result, the variable str will contain:

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:2 mins read

The string "12" has been written into the str variable: (let str = "12";). Then the operations str = +str is performed. As a result, the variable str will contain: NaN 12…

Continue ReadingThe string “12” has been written into the str variable: (let str = “12”;). Then the operations str = +str is performed. As a result, the variable str will contain:

The confirm method allows you to create a dialog box. What value does this method return when the user closes the window?

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:2 mins read

The confirm method allows you to create a dialog box. What value does this method return when the user closes the window? Always true. Always false. The string entered by…

Continue ReadingThe confirm method allows you to create a dialog box. What value does this method return when the user closes the window?

Analyze the code snippet: Its execution will result in the following values in the variables n and m:

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:3 mins read

Analyze the code snippet: let n = 10; let m = ++n; Its execution will result in the following values in the variables n and m: n: 11, m: 10 n: 10, m:…

Continue ReadingAnalyze the code snippet: Its execution will result in the following values in the variables n and m:

The number 2 is stored in the variable n (let n = 2;). The command n = n*n*n is then called. This last command can be replaced by:

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:2 mins read

The number 2 is stored in the variable n (let n = 2;). The command n = n*n*n is then called. This last command can be replaced by: n **= n; n **=…

Continue ReadingThe number 2 is stored in the variable n (let n = 2;). The command n = n*n*n is then called. This last command can be replaced by:

Which operator do we use if we want to check if two variables store the same values of exactly the same type?

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:2 mins read

Which operator do we use if we want to check if two variables store the same values of exactly the same type? = === == !== Answers Explanation & Hints:…

Continue ReadingWhich operator do we use if we want to check if two variables store the same values of exactly the same type?

Analyze the following code: What value will the test variable have if, after running the code, we immediately press the Ok button on the newly created dialog?

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:2 mins read

Analyze the following code: let test = prompt("Hello", "World"); What value will the test variable have if, after running the code, we immediately press the Ok button on the newly created…

Continue ReadingAnalyze the following code: What value will the test variable have if, after running the code, we immediately press the Ok button on the newly created dialog?

We have declared an array let animals = [“dog”, “cat”, “hamster”];. We want to temporarily comment out the element “cat”, and to do this, we can modify the declaration as follows:

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:2 mins read

We have declared an array let animals = ["dog", "cat", "hamster"];. We want to temporarily comment out the element "cat", and to do this, we can modify the declaration as follows:…

Continue ReadingWe have declared an array let animals = [“dog”, “cat”, “hamster”];. We want to temporarily comment out the element “cat”, and to do this, we can modify the declaration as follows:

We have declared an array of selected month names let summer = [“June”, “July”, “August”];. We want to change the value “July” stored in the array to the number 7:

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
  • Post last modified:June 12, 2024
  • Reading time:2 mins read

We have declared an array of selected month names let summer = ["June", "July", "August"];. We want to change the value "July" stored in the array to the number 7: summer[1] =…

Continue ReadingWe have declared an array of selected month names let summer = [“June”, “July”, “August”];. We want to change the value “July” stored in the array to the number 7: