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

why did Metternich urge conservative leaders to suppress revolutionary ideas
What is velocity measured in?
Franco hikes 4 miles each day for 5 days. He carries 100 ounces of water with him. It takes him 1hour to hike 4miles. How many hours did he hike in 5 days?
How does gravity and density affect weight
What is the largest square number that divides exactly into 63?
At the beginning of act 2 scene 3 where does ruth tell beneatha she and walter went the evening before?
After which problem-solving stage should you take action? A. Defining the problem B. Evaluating information C. Gathering information E. Making a choice
Le Canada a un premier ministre. Il n'y a pas de président. True or False?
what is the domain of the function y=2e^x
Kiddie village is a successful daycare center. it focuses on actively developing, finding, and communicating new knowledge to its employees so that workers can