1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 23:34:50 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/samples/SampleJavaScriptTiddlerWithError.tid
2012-11-16 21:20:27 +00: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
}