1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-06 04:26:51 +00:00
TiddlyWiki5/tw5.com/tiddlers/SampleJavaScriptTiddlerWithError.tid
Jeremy Ruston f838d6e3c1 Lots of documentation updates
More to come...
2012-06-10 13:40:53 +01:00

15 lines
274 B
Plaintext

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