Javascript...End Javascript: Difference between revisions
Jump to navigation
Jump to search
m Ghenne moved page Javascript...end javascript to Javascript...End Javascript |
|||
Line 5: | Line 5: | ||
== Description == | == Description == | ||
The JavaScript statement allows you to ember pure JavaScript in your app. This allows you to have additional functionality or to reuse functions from other JavaScript projects. Statements within this block must follow all JavaScript rules. For more information, see the Tech Note ‘The role of JavaScript and WebKit’. | The JavaScript statement allows you to ember pure JavaScript in your app. This allows you to have additional functionality or to reuse functions from other JavaScript projects. Statements within this block must follow all JavaScript rules. Do not put a comment on the JavaScript line. For more information, see the Tech Note ‘The role of JavaScript and WebKit’. | ||
== Example == | == Example == |
Revision as of 10:36, 12 May 2013
JavaScript
- [statements]
End JavaScript
Description
The JavaScript statement allows you to ember pure JavaScript in your app. This allows you to have additional functionality or to reuse functions from other JavaScript projects. Statements within this block must follow all JavaScript rules. Do not put a comment on the JavaScript line. For more information, see the Tech Note ‘The role of JavaScript and WebKit’.
Example
Rem JavaScript…End JavaScript sample Dim s s = "knuTH" JavaScript function UCFirst(str){ // split string firstChar = str.substring(0,1); remainChar = str.substring(1); // convert case firstChar = firstChar.toUpperCase(); remainChar = remainChar.toLowerCase(); return firstChar + remainChar } End JavaScript Print UCFirst(s)
Output
Knuth