Countryqueen1776 Countryqueen1776
  • 26-10-2020
  • Computers and Technology
contestada

Find the index of the string "noisy" and assign substringIndex with the index. Then, update wiseProverb replacing "noisy" with "squeaky".

Respuesta :

DeniceSandidge DeniceSandidge
  • 27-10-2020

Answer is given below

Explanation:

the index of the string "noisy"

and

substringIndex with the index is express as here given below

when we update with replace wiseProverb as "noisy" with "squeaky"

than

var wiseProverb = "The noisy wheel gets the grease.";

var substringIndex = 0;

substringIndex = wiseProverb.indexOf("noisy");

wiseProverb.replace("noisy", "squeaky");

Answer Link

Otras preguntas

Compare and contrast viruses with living organisms
A fair coin is tossed 100 times. What is the probability that more than 55 heads are observed?
Why can a constellation X not be seen in the summer, but only in winter?
what is gravitation.
what is gravitation.
How would I work this out in my head, without a calculator??
Which statement is always true for a square, but not always true for a rhombus? - Two angles are obtuse. - All sides are equal. - Two or more angles are ri
If you have a mass of 50 kg on Earth, what is your weight in Newtons?
15cm3 block of gold weighs  2.8N it is carefully submerged in a tank of mercury. one cm3 of mercury weight 0.!3n a will the mercury be displaced by the gold?
Predators often feed on weak or sick animals in an ecosystem. The role of the predator is described as its ..what? :)