Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is wrong with the following segment of JavaScript (besides the missing html, body and script tags - I can not type those as they

What is wrong with the following segment of JavaScript (besides the missing html, body and script tags - I can not type those as they interfere with the Blackboard html code)? The way the code appears below, the loop will never be executed and the line of code with the prompt statement in it never appears for the user to respond to.

var BR = "
"; // html line break tag var ES = ""; // empty string

var reply; while ( reply == "Y" ) { document.write("Hello" + BR); reply = prompt("Do you want to print hello again?",ES); }

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

Step: 3

blur-text-image

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions