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
JulijaS [17]
3 years ago
13

Write a sequence of statements that finds the first comma in the string line, and assigns to the variable clause the portion of

line up to, but not including the comma. You may assume that an int variable pos, as well as the variables line and clause, have already been declared.
Computers and Technology
1 answer:
densk [106]3 years ago
6 0

Answer:

I will code in Javascript;

function findFirstComma() {

var pos;

var line = 'Thi,s is a t,est';

var clause;

pos = line.indexOf(','); <em>//set pos in 3.</em>

clause= line.slice(0,pos);  <em>// saves in clause the value 'Thi'.</em>

}

Explanation:

The slice(start, end) method extract a part of a string then returns a new string with the extracted part.  The end parameter indicates where to end the extraction(up to, but not including).

The includes(value) method determines if a string contains the characters on a specified string, if it doesn't match then returns -1.

You might be interested in
Annie wants to create a polka-dot pattern. She wants the dots to be distributed evenly in her pattern. She has turned on the gri
Alekssandra [29.7K]

Answer:

Annie should ensure that her dots are grouped in the Layers Palate.

Explanation:

For Annie to create a polka-dot pattern, that has dots distributed evenly in her pattern. She should turn on the grid feature in Illustrator.

Annie should ensure that her dots are grouped in the Layers Palate in order not to have a hard time manually arranging the dots.

4 0
4 years ago
What is data called that is input into a cryptographic algorithm for the purpose of producing encrypted data?
labwork [276]
<span>A key is data called that is input into a cryptographic algorithm for the purpose of producing encrypted data. There are two types of cryptography, the public key and the private key. The public key uses public keys to encrypt data and private key uses private key to decrypt data. They are produced by a group of algorithms. </span>
8 0
4 years ago
Mrs. Jackson wrote a newsletter to the customers of her housecleaning business that included some organizational tips they could
nika2105 [10]
The correct answer is a. effective communication

- - -
Ineffective and barriers to communication are problems that make communication unclear. Workplace communication is at work or at a job. This is not a job newsletter for workers, but for people at home.
5 0
4 years ago
Read 2 more answers
236. A system such as a printer, smart TV, or HVAC controller, typically uses an operating system on what is called a:
irakobra [83]

Answer:

Embedded System

5 0
2 years ago
Read 2 more answers
What is that tool that makes liquid metal? It is used for wires, Ik I might sound dumb but I'm rlly curious​
Alex_Xolod [135]

Answer:

A blow torch?

Explanation:

4 0
3 years ago
Other questions:
  • Robert brought 10 shares apex company for $18 each and later sold all of them at $17 each. This transaction resulted in what typ
    8·2 answers
  • How do you change between worksheets inside an excel workbook?
    13·2 answers
  • To paste text with the same formatting as the document in which it is entered, select _____ from the Paste menu.
    12·1 answer
  • Now tell me how be rich like Bill Gates
    6·1 answer
  • Which two of the following skills are important for a meteorologist
    12·1 answer
  • The primary purpose of an operating system is: To provide a software interface between the hardware and the application programs
    11·1 answer
  • List at least five smaller behaviours you could break the complex behaviour ""brushing my teeth"" into.
    6·1 answer
  • You have imported a library with the birthMonth() function. Based on the API, how many strings are inputed to calculate the birt
    11·1 answer
  • Here is what my rob-lox user USED to look like, btw what is better, Samsung or apple?
    13·2 answers
  • In the earliest stages of human history, what was the only medium?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!