What are the arguments and parameters in the code snipped? …
What are the arguments and parameters in the code snipped? var shirt = “blue”; var pants = “gray”; var clothes = wearIt(shirt, pants); function wearIt( x, y) { var myOutfit = “Today I will wear a ” + pants + 8 ” shirt and ” + shirt + ” pants.”; return myOutfit; } document.write(clothes);
Read DetailsWhat is the scope of the variable pencil on line 8? var…
What is the scope of the variable pencil on line 8? 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