216k views
1 vote
The following code var display_error = function(message) ( alert(Error: + message); ) a. creates a function named message b. calls a function named message c. creates a function and stores it in a variable named display_error d. creates a function named display_error

a) Creates a function named message
b) Calls a function named message
c) Creates a function and stores it in a variable named display_error
d) Creates a function named display_error

1 Answer

5 votes

Final answer:

The code creates a function and stores it in a variable named display_error.

Step-by-step explanation:

The code var display_error = function(message) { alert('Error: ' + message); } creates a function and stores it in a variable named display_error.

User Bryan Ray
by
7.4k points