Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

var x = 42; var y = -1; alert(x > 0 && y > 0); alert( x < 0 || y < 0); alert( x

var x = 42;

var y = -1;

alert(x > 0 && y > 0);

alert( x < 0 || y < 0);

alert( x < 0 !== y < 0);

alert(!(x > 0 && y > 0));

Question 10 options:

false false true true

true true false false

false true false true

false true true true

Question 11 (1 point)

var s = "Hello";

alert("Hello".toUpperCase());

alert(s);

What is being printed?

Question 11 options:

HELLO Hello

HELLO HELLO

Hello Hello

Hello HELLO

Question 12 (1 point)

var x = 5;

x += 30;

x -= 2;

x *= -4;

alert(x);

Question 12 options:

33

-132

132

35

Question 13 (1 point)

var array = [3, 52, 9, 1, 30, 2];

for (var i = 0; i < array.length; i += 1) {

if (array[i] % 2 == 0) {

alert("Even number found at position " + i);

break;

}

}

What output do you get

Question 13 options:

3 Even number found at position 0

9 Even number found at position 2

1 Even number found at position 3

52 Even number found at position 1

Question 14 (1 point)

alert(-1e309);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How would you describe your typical day at work?

Answered: 1 week ago