0

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 = ; }

21st Nov 2016, 7:18 AM
SAMSON RAYMOND ENOKELA BRIGHT
13 ответов
+ 10
this.height = height; this.weight = weight; this.sampleCalc = calculate;
15th Mar 2017, 7:54 AM
Palkesh Baraiya
Palkesh Baraiya - avatar
+ 8
this.height = height; this.weight = weight; this.sampleCalc = calculate;
28th Mar 2019, 4:55 AM
Sridhar Raj.P
Sridhar Raj.P - avatar
+ 6
alert(math,PI)
14th Jan 2019, 2:19 PM
Aniss Lidya
Aniss Lidya - avatar
+ 3
Drag and drop from the options below to get alerted with the value of the PI constant.
28th Jun 2017, 4:55 PM
Manoj S M Reddy
Manoj S M Reddy - avatar
+ 3
function mathCalc (height, weight) { this.height = height; this.weight = weight; this.sampleCalc = calculate; }
3rd Nov 2017, 10:44 AM
Er Venkey Dematti
Er Venkey Dematti - avatar
+ 3
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; }
2nd Oct 2019, 3:28 AM
Mewan Athukorala
Mewan Athukorala - avatar
+ 2
alert(math,PI)
28th Apr 2019, 5:49 PM
Brianna Harris
Brianna Harris - avatar
0
this.height = height; this.weight = weight; this.sampleCalc = calculate;
22nd Apr 2020, 9:04 PM
Diego Fernando Velesaca Orellana
Diego Fernando Velesaca Orellana - avatar
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👨
29th Apr 2020, 1:46 AM
ben
ben - avatar
0
this.height = height; this.weight = weight; this.sampleCalc = calculate;
12th May 2020, 5:49 AM
ahmadajram
0
function mathCalc (height, weight) { this.height = height ; this.weight = weight ; this.sampleCalc = calculate ; }
28th Jun 2020, 6:35 AM
Faith Mundi
Faith Mundi - avatar
- 4
Drag and drop from the options below to get alerted with the value of the PI constant
24th Jul 2018, 1:39 PM
Muhammad Yaseen
Muhammad Yaseen - avatar