TiddlyWiki5/tiddlywiki5/tiddlers/SampleJavaScriptWithError.tid

14 wiersze
230 B
Plaintext

title: SampleJavaScriptWithError
type: application/javascript
/*
This is an example JavaScript file
*/
function myFunction(param) {
if(=) { // An error
param = param/17;
}
return param * Math.PI; // Perform a calculation
}