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
Draw the flowchart to calculate the area of the rectangle 50m length and width 30m.​
marta [7]

Answer:

---- ----

Explanation:

1) Start

2) Rectangle: Read Length and Width.

3) Calculate

4) Print (Calculate)

8 0
3 years ago
Which practice is the best option for desktop security?
ziro4ka [17]
You should make a unique password and change it daily
6 0
3 years ago
Read 2 more answers
Many mobile computers and mobile devices use LCD monitors. What does LCD stand for?
erica [24]
Liquid crystal display
4 0
3 years ago
Which part of a computer s ip address configuration indicates the portion of the address that specifies the network address?
vivado [14]
The NETWORK mask is and'ed with the IP address to get the network number.

Example:

192.168.1.1 & 255.255.255.0 = 192.168.1.0/24

It's worth the effort to do this in binary, it makes much more sense.
4 0
3 years ago
Who was making the high-pitched growling noise that Francisco hears?
Gwar [14]

The high-pitched growling noise that Francisco hears is due to mating call of male midshipman fish or 5G.

<h3>What is the  hum about?</h3>

The Hum is known to be a kind of unexplained happenings that has brought a lot of irritations to people. It is known to be a high-pitched noise that brought a lot of scientific theories.

Studies has shown that the high-pitched growling noise that Francisco hears is as a result of  mating call of male midshipman fish or 5G.

Learn more about noise from

brainly.com/question/2278957

8 0
2 years ago
Other questions:
  • ___ refers to all aspects of managing and processing information using computers and computer networks
    13·1 answer
  • What is the curriculum of digital literacy
    6·1 answer
  • True or false. Every word has only one correct spelling and pronunciation.
    6·1 answer
  • List three considerations when you choose memory.
    14·1 answer
  • The ________ file system supports a maximum file size of 2gb
    12·1 answer
  • How does montag know that the mechanical hound leaves faber's house alone?
    14·1 answer
  • Gloria is in her sophomore year of college and works part time. She has assignments saved on her home computer, her aunt's lapto
    6·2 answers
  • You've been hired as a consultant to help an online store owner. You need to complete the implementation of conversion tracking
    6·1 answer
  • 20 Points! What are some ways to insert a row or column? Check all that apply.
    14·2 answers
  • Choose the algorithms below that are also programs.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!