tonjawhite322 tonjawhite322
  • 12-11-2020
  • Computers and Technology
contestada

The string expression strVar.____________________ starts at index pos, replaces the next n characters of strVar with all the characters of str.

Respuesta :

Baraq
Baraq Baraq
  • 15-11-2020

Answer:

strVar.replace(pos, n, str);

Explanation:

The strVar.replace() is a javascript function of searching and replacing a string for a defined value, whereby it finds and returns a new string where the defined values are replaced.

For example: to return a string where "Trump" is replaced with "Biden":

We have

var str = "Welcome Trump!";

var res = str.replace("Trump", "Biden", str);

Hence, in this case, the correct answer is strVar.replace(pos, n, str);

Answer Link

Otras preguntas

The sum of two numbers is 95, and their difference is 61. What are the two numbers?
9/10 divided by (1/10 plus 2/5)
find the area of a circle with a diameter of 22 inches?
solve the missing measure of a square, when P=76inFormula: P=4s
There are 50 questions to answer in a trivia contest. Each player starts with 100 points. He or she earns 10 points for each correct answer but loses 4 points w
solve the missing measure of a square, when P=76inFormula: P=4s
McDonald's has sold more than a billion hamburgers. If it were possible to eat a hamburger every minute of everyday (day and night) without stopping, how many y
The sum of two numbers is 95, and their difference is 61. What are the two numbers?
find the area of a circle with a diameter of 22 inches?
9/10 divided by (1/10 plus 2/5)