g Use Math.random function to generate a number between 20 and 100 and then use the ngSwitch directive to display a letter grade based on this class grading policy. a. add implements OnInit to the AppComponent class b. add variable x in the AppComponent class

Respuesta :

Answer:

// Example

function ourFunction(ourMin, ourMax) {

 return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;

}

ourFunction(1, 9);

// Only change code below this line.

function randomRange(myMin, myMax) {

 return Math.floor(Math.random() * (myMax - myMin + 1) + myMin);

}

// Change these values to test your function

var myRandom = randomRange(20, 100);

ACCESS MORE