HOTSPOT
You are developing a Windows Store app by using JavaScript. The app will call a WinMD component
to convert temperature. The component exposes the following two members:
A static variable named Fahrenheit
A public method named GetInCelsius( ) that accepts an integer
You need to ensure that the app will display the temperature in Celsius and Fahrenheit. How should
you complete the relevant code? (To answer, select the correct code segment from each drop-down
list in the answer area.)
Answer:
The question actually says:
A static variable named Fahrenheit
A public method named GetInCelsius( ) that accepts an integer
So shouldn’t the member names capitalized, i.e. ‘Farenheit’, ‘GetInCecius’?
Vadim, it should’t be capitalize because the method and variable are written in WinMD, so to access them you use the javascript API (lowercase).
Projection makes methods and property written in components to be converted in camel case.