Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Use Javascript Solve Problems Description Following Questions Fill Blank One Line Answer Q35590722

Use Javascript to solve these problems.

Description

The following questions are fill in the blank. They are one lineanswer only. You will have 3 tries to get the answers correct.

To get the answers correct, you must do all of the followingvery carefully:
– Omit any extra whitespace. If a whitespace is required, onlyinclude one, such as between function and name in a functionheader.
– Curly braces are placed on the next line
– Omit all comments
– Include semi-colons as needed
– Use single quotes
– Assume that any methods, functions, or attributes described inthe question are already defined.

For example:
What is the function header definition (the first line) for thefunction named paint that has the parameter x?

Correct:
function paint(x)

Incorrect:
function paint(x)
function paint( x)
function paint(x )
function     paint(x)

What is the method header definition (the first line) for thefunction named paint that has the parameter x?

Correct:
paint:function(x)

Incorrect:
paint:function(x)
paint: function (x)
paint:function ( x)

Please reread these instructions and questions a second time toinsure that you haven’t missed anything so you can get full points.Don’t forget the semicolon;

QUESTION 6

What is the method header definition (the first line) for themethod named paint with the parameter x and the default parametervalue of 15?

QUESTION 7

What is the definition for the attribute named type with astring value of pet? Include all punctuation… use singlequotes.

QUESTION 8

What is the header definition for the method named getcolor withthe parameter mycolor?

QUESTION 9

What is the function call for the function named mydiv with theargument 15.7? Include all punctuation.

QUESTION 10

What is the function call for the function named mydiv with noarguments? Include all punctuation.

QUESTION 11

What is the call for the method named mytype for the objectcalled hyper with the argument 6? Include all punctuation.

QUESTION 12

Assign the value 7 to the attribute named size for the theobject hyper.

QUESTION 13

On the same line, declare the variable x (using var) and assignthe attribute length from the object product to the variable x.

QUESTION 14

On the same line, declare the variable x (using var) and assignthe return value from the method called mysquare from the objectcalled hyper.

QUESTION 15

What is the definition for the attribute named fish with astring value of goldfish? Include all punctuation… use singlequotes.

Leave a Reply

Your email address will not be published. Required fields are marked *