Purpose You want to return a function result in your JavaScript function |
Solution JavaScript
Remark is syntactically correct but returns the "toUpperCase" string function and not its result. In most cases this is not what you intend. It is possible (but rarely makes sense) to use the returned function in subsequent JavaScript calls; see the examples 3 and 4 below. Example 1
JavaScript
JavaScript
JavaScript
JavaScript
|
Components |