Which of the following should be used to make the code snipp…
Which of the following should be used to make the code snippet work for students who get any score between 0 – 100? var grade = 0; var score = parseInt(“What’s the score?”); if (score < 70) grade = "F"; else if ( ??? ) grade = "C"; else if (grade >= 85) grade = “A”;
Read DetailsWhat is the scope of the variable pen on line 6? var pen =…
What is the scope of the variable pen on line 6? var pen = “Bic”; var pencil = “0.7 mm lead”; function writeIt() { document.write(“I have a ” + pen + ” pen.”); pen = “Flair”; document.write(“You have a ” + pen + ” pen.”); var pencil = “0.5mm lead”; document.write(“I prefer pencils with ” + pencil); }
Read Details