mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 19:39:57 +00:00
15 lines
267 B
Plaintext
15 lines
267 B
Plaintext
title: SampleJavaScriptWithError
|
|
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
|
|
}
|
|
|