1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-29 11:30:28 +00:00
TiddlyWiki5/tw5.com/tiddlers/samples/SampleJavaScriptTiddlerWithError.tid

15 lines
274 B
Plaintext
Raw Normal View History

title: SampleJavaScriptTiddlerWithError
type: application/javascript
2012-05-20 17:47:11 +00:00
tags: demo
/*
2012-05-20 14:59:04 +00:00
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
}