Which of the following functions correctly returns the argument value times 10?

A. new timesTen(num) {
   var result = num * 10;
   return result;
}
B. timesTen(num) {
   var result == num * 10;
   return result;
}
C. function timesTen(num) {
   var result == num;
   return result;
}
D. function timesTen(num) {
   var result = num * 10;
   return result;
}


Answer: D

Computer Science & Information Technology

You might also like to view...

After the code shown executes, which of the following statements is true?

``` int numbers[] = {0, 1, 2, 3, 4}; int *ptr = numbers; ptr++; ``` a. ptr will hold the address of numbers[0] b. ptr will hold the address of the second byte within the element numbers[0] c. ptr will hold the address of numbers[1] d. this code will not compile

Computer Science & Information Technology

What are the subnet network and the broadcast network for the IP address 10.12.98.45/14?

A) 10.12.0.0 B) 10.13.255.255 C) 10.0.0.1 D) 10.15.255.255

Computer Science & Information Technology

Which command lists the hotfixes installed to Windows?

A. systeminfo B. gpedit.msc C. cmd.exe D. sc config

Computer Science & Information Technology

When creating a template from an existing page, the ____________________ that is specific to the page is deleted, but the template still contains the navigation, branding, and footer areas.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology