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
The perimeter of a playing field for a certain sport is 334ft. The field is a rectangle, and the length is 47 ft longer than the
babunello [35]

Answer:

The dimensions of the rectangle = 60ft by 107ft

Where 60 ft = Width of the playing field

107ft = Length of the playing field

Step-by-step explanation:

A playing field is Rectangular is shape, hence,

The formula for Perimeter of a rectangle = 2(L + W)

P = 334 ft

L = 47 + W

W = W

Hence we input these values in the formula and we have:

334 = 2(47 + W + W)

334 = 2(47 + 2W)

334 = 94 + 4W

334 - 94 = 4W

240 = 4W

W = 240/4

W = 60

There fore, the width of this playing field = 60 ft

The length of this rectangle is calculated as:

47 + W

47 + 60

= 107 ft

The length of this playing field = 107ft

Therefore the dimensions of the rectangle = 60ft by 107ft

6 0
3 years ago
Which of the following sets of numbers could be the side lengths of a right triangle?
disa [49]

Answer:

9, 40, and 42

Step-by-step explanation:

4 0
3 years ago
Write words to match the expression
Readme [11.4K]
Three plus the product of four times twelve
5 0
4 years ago
Read 2 more answers
Answer the question below please
DaniilM [7]

The correct answer is : of those planning to not to go on vacation, more of them are women.

The correct answer is (C)

<h3>What is probability?</h3>

Probability means possibility. It is a branch of mathematics that deals with the occurrence of a random event

Given:  total people asked =145

The first option is not correct because plan to go on vacation women are more than men.

The second option is also incorrect because more women were asked than men.

The third option is correct because out of planning who were not going any vacation, women are more than of men.

The fourth option is incorrect because More men plan to go on vacation.

Learn more about probability here:

brainly.com/question/11234923

#SPJ1

5 0
2 years ago
Find the area of this figure.
kakasveta [241]

Answer:

pretty sure it's 360 :)

Step-by-step explanation:

...

5 0
3 years ago
Read 2 more answers
Other questions:
  • 1/2 1 1/4 miles per hour
    8·1 answer
  • Please help!!! i don't need an explanation, and its due pretty soon !
    6·1 answer
  • Suppose that when your friend was​ born, your​ friend's parents deposited ​$5000 in an account paying
    12·1 answer
  • Put this equation in slope intercept form: 3x - 2y = -6
    7·1 answer
  • How do you write 1.89 in words?
    14·1 answer
  • [PLEASE HELP ]AYO someone help me it’s solve Y now
    7·2 answers
  • Help pls I give brainlest
    6·1 answer
  • PLEASE HELP ME!
    6·1 answer
  • Fill in the missing volumes in the table to create equivalent ratios
    7·1 answer
  • Find the range of the data.<br><br> 41, 64, 97, 12, 8, 8
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!