GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

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 Details

 Which would be used to have a JavaScript function named hel…

 Which would be used to have a JavaScript function named hello() execute before the user views a web page?

Read Details

If the variable hours = 10, what is the value of the variabl…

If the variable hours = 10, what is the value of the variable salary after the following instruction has been executed:  salary = hours * 8

Read Details

What would the following code snippet display?            …

What would the following code snippet display?                var x = 5;                if(x == 4)                document.write(“Math is fun!”);                          else                          document.write(“Wrong! “);                          document.write(“Math is not fun!”);

Read Details

Evaluate 8 % 7 

Evaluate 8 % 7 

Read Details

What 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

Which of the following is NOT one of the primary JavaScript…

Which of the following is NOT one of the primary JavaScript data types?

Read Details

 Which of the following will assign the variable named timCa…

 Which of the following will assign the variable named timCall to the sentence:                                 Tim called, “Lassie, come home!”

Read Details

Which type of data type can have only one of two possible va…

Which type of data type can have only one of two possible values?          

Read Details

What is the value of myNum after the code snippet is execute…

What is the value of myNum after the code snippet is executed?   function product(x.y); {      return (x * y); } myNum = product(5, 10);

Read Details

Posts pagination

Newer posts 1 … 44,603 44,604 44,605 44,606 44,607 … 68,864 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top