TiddlyWiki5/tw5.com/tiddlers/SampleJavaScriptWithError.tid

15 wiersze
267 B
Plaintext
Czysty Zwykły widok Historia

title: SampleJavaScriptWithError
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
}