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
horrorfan [7]
3 years ago
12

What is the return value of "select".substring(4, 4)?

Mathematics
1 answer:
Romashka-Z-Leto [24]3 years ago
4 0
I'm assuming the syntax here is Javascript:

The str.substring() method takes in two integers - a start index and an end index - and returns all the characters in the specified range from the original string, <em>including</em> the character in the start index and <em>excluding </em>the character in the end index<em />. Javascript's is <em>0-indexed</em>, which means that all of its indices start at 0.

For instance, if we were to use the method on the string "test" and wanted to return the substring "tes", we'd call the following method:

"test".substring(0,3)

This would return everything from the first character, "t", <em>up to but not including</em> the fourth character, "t". The character immediately before the last "t" (index 3), "s" (index 2) would be our last character, and the console should print "tes" as a result.

For your example, "select".substring(4,4) prints out every character starting at index 4 - the fifth character, "c" - <em>up to but not including </em>the character at index 4. We start and stop at the same character, so the method will only return the character "c", and nothing else.
You might be interested in
In order to store paint, a factory has purchased a cylindrical tank that is 6 feet across and 9 feet deep. What is the maximum n
SOVA2 [1]

Answer:

254 cubic feet.

Step-by-step explanation:

It is given that the a cylindrical tank is 6 feet across and 9 feet deep. It means

Diameter of cylinder = 6 feet

Radius of the cylinder = 6/2 = 3 feet

Height of the cylinder = 9 feet

The volume of a cylinder is

V=\pi r^2h

where, r is radius and h is height of the cylinder.

Substitute r=3 and h=9 in the above formula.

V=\pi (3)^2(9)

V=81\pi

V=254.46900

We need to find the maximum number of cubic feet. So approx the value to a whole number.

V\approx 254

Therefore, the maximum number of cubic feet of paint the tank will hold is 254 cubic feet.

8 0
3 years ago
You and your friend are standing back-to-back. Your friend runs 16 feet forward and then 12 feet right. At the same time, you ru
Arte-miy333 [17]
Add 16+12 to get 28.
Add 9+12 to get 21.

Think of these as the sides of a triangle.
a^2+b^2=c^2
28^2+21^2=1225
√1225=35

You threw the ball 35 feet.

3 0
4 years ago
What is 37 over 24 in fractions
gogolik [260]
U have to simplifie that problem.

6 0
4 years ago
Read 2 more answers
A line is imaginary. <br><br> True or False?
Svetradugi [14.3K]

Answer:

The ideal line is a concept. A line that is drawn cannot be a mathematically true line since it will have a thickness - no matter how small. Also, it cannot be infinitely long - no matter how large.

7 0
3 years ago
Read 2 more answers
jerry deposits 80.00 into new savings account the account earns 3.5% simple interest per year no money is added or removed from
deff fn [24]

Answer:

$84.14

Step-by-step explanation:

Begin by multiplying 1.035 by 4.

Get 4.14.

Add this to the original amount deposited, $80.

The answer is $84.14

8 0
3 years ago
Other questions:
  • What are 2 irrational numbers between 13 and 15
    7·1 answer
  • The graph shows the path of a rider on a ride at an amusement park.
    15·2 answers
  • Opposite numbers like 5 and -5 are the same distance away from 0 AND on opposite sides of 0.
    12·1 answer
  • The daily dinner bills in a local restaurant are normally distributed with a mean of $28 and a standard deviation of $6. What is
    8·1 answer
  • BRAINIEST TO WHOEVER RIGHT
    5·1 answer
  • 3) Lynette has $10.00. She goes to the pizzeria and buys a slice of pizza $2.50 and a drink for $1.75. How much money does Lynet
    14·1 answer
  • How would you write the fraction 5/2 as a division expression?
    14·2 answers
  • Please help me solve this please
    12·1 answer
  • Yo can i get a hand here just so i dont get it wrong
    12·1 answer
  • I inserted a picture of the question can you please hurry or you can just put the answer
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!