What 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); }     

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);