subject

The code fragments below all represent attempts to declare/define a new function called myFunction which accepts two numbers and multiplies them. Select all of versions of the code which may used to declare and define the new function. (Hint, a choice being "syntactically valid", doesn't mean that it actually declares a new function usable as described.) var myFunction = new function(x, y) {
return x*y;
}
myFunction (x, y) {
return x*y;
}
var myFunction = function(x, y) {
return x*y;
}
new myFunction (x, y) {
return x*y;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 14:20
Once starbucks had established its presence in thousands of cities internationally, the company sought to increase the number of purchases by existing customers with a strategy that led to new in-store merchandise, including compilation cds and high-speed wireless access.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
What are the 4 basic items that are traded throughout the world?
Answers: 1
question
Computers and Technology, 25.06.2019 08:30
Which of these devices is usually the default for most home network?
Answers: 1
You know the right answer?
The code fragments below all represent attempts to declare/define a new function called myFunction w...
Questions
question
Mathematics, 29.05.2020 09:59
question
Mathematics, 29.05.2020 09:59
question
Mathematics, 29.05.2020 09:59
question
Mathematics, 29.05.2020 09:59
Questions on the website: 13722362