1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
wariber [46]
4 years ago
13

JavaScript

Computers and Technology
1 answer:
nikklg [1K]4 years ago
5 0

Answer:

(a) The user will be prompted to enter a different name

Explanation:

Given code;

<em>--------------------------------------------------------------------------------------------------------</em>

<em>var name = prompt("Enter the name to print on your tee-shirt"); </em>

<em>while (name.length > 12) { </em>

<em>name = prompt("Too long. Enter a name with fewer than 12 characters."); </em>

<em>} </em>

<em>alert("The name to be printed is " + name.toUpperCase());</em>

<em>--------------------------------------------------------------------------------------------------------</em>

<em />

<em />

=>The first line of the code prompts the user to enter some name to be printed on their tee-shirt, and the input from the user is saved in a variable called <em>name</em>.

=> In the while block, the name variable is checked. If the length of the value of the variable is greater than 12 then a new prompt that says "Too long. Enter a name with fewer than 12 characters" is displayed.

=> In the last line, if the name variable is checked and the length is less than 12, then an alert statement showing the name in uppercase is displayed with some prepended texts.

Now, if the user enters Willy Shakespeare at the first prompt, the while block will be executed since Willy Shakespeare has over 12 characters.

In other words, the prompt in the while block, asking the user to enter a different name will be displayed. i.e

"Too long. Enter a name with fewer than 12 characters"

You might be interested in
Python Question Class 11 attached below
snow_tiger [21]
math = 2-2/3+2/5-2/7+2/9
Print(math)
Simple as that tell me if im wrong its been a while since i didn’t do python
6 0
3 years ago
How does applying Fontworks effects to text on an advertising flyer change the text?
Cerrena [4.2K]

Answer:A

Explanation:

5 0
3 years ago
Read 2 more answers
____ technology essentially takes the data to be transmitted and rather than transmitting it in a fixed bandwidth spreads it ove
aleksley [76]

Answer: Spread spectrum

Explanation:

In spread spectrum the data to be transmitted is spread over a wider bandwidth rather than fixed bandwidth.

4 0
4 years ago
PLEASE HELP QUICK ASAP NO LINKS PYTHON CODING
Mademuasel [1]

Answer:

its for the movement

Explanation:

6 0
3 years ago
Read 2 more answers
A technician is at a small facility that has five computers connected to a central switch and accessing a single server for file
Crazy boy [7]

Answer:

c.

Explanation:

The swich is failing because it letting the four in but not the fith ond so it a faulty swich

8 0
3 years ago
Other questions:
  • What would make this comparison statement False? Complete with the appropriate relational operator. "G" _____= "G"
    10·1 answer
  • The control programs managing computer hardware and software perform the _________ function to control and prioritize tasks perf
    8·1 answer
  • We have the following class:
    6·1 answer
  • Solver: Most of this class has already been written. Complete the solveRecurse() method using the backtracking. Also complete th
    10·1 answer
  • ____ assigns a risk rating or score to each information asset. Although this number does not mean anything in absolute terms, it
    8·1 answer
  • WRITE A JAVA PROGRAM TO PRINT THE PATTERN<br> 13579<br> 2468<br> 357<br> 46<br> 5
    12·1 answer
  • Assume variables SimpleWriter out and int n are already declared in each case. Write a while loop that printsA. All squares less
    11·1 answer
  • Write a Java program that prints out a 4x4 square (like the one below)
    11·1 answer
  • Create a program that receives the age of a user and determine whether he/she can vote or not. Assume the voting age to be 20. C
    14·1 answer
  • When conducting memory and recall tests, some people make an effort to normalize memories by not reporting extreme cases. this l
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!