 Javascript | SoloLearn: Learn to code for FREE!

-1

# Javascript

Complete the expression to create an object constructor, taking into account that "height" and "weight" are properties and "calculate" is a method for the given object: function mathCalc (height, weight) { this.height = ; this.weight = ; this.sampleCalc = ; }

12 Answers

New Answer

+8

this.height = height; this.weight = weight; this.sampleCalc = calculate;

+6

this.height = height; this.weight = weight; this.sampleCalc = calculate;

+5

+4

Drag and drop from the options below to get alerted with the value of the PI constant.

+3

function mathCalc (height, weight) { this.height = height; this.weight = weight; this.sampleCalc = calculate; }

+2

Complete the expression to create an object constructor, taking into account that "height" and "weight" are properties and "calculate" is a method for the given object: function mathCalc (height, weight) { this.height = ; this.weight = ; this.sampleCalc = ; } answer function mathCalc (height, weight) { this.height = height; this.weight = weight; this.sampleCalc = calculate; }

0

this.height = height; this.weight = weight; this.sampleCalc = calculate;

0

this.height = height; this.weight = weight; this.sampleCalc = calculate; because this.height is a variable and the question asks you to fill in the right info👨

0

this.height = height; this.weight = weight; this.sampleCalc = calculate;

0

function mathCalc (height, weight) { this.height = height ; this.weight = weight ; this.sampleCalc = calculate ; }

-4

Drag and drop from the options below to get alerted with the value of the PI constant