1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// GM my children, the rapture is needed
commandment holyGreeting = "GM, world";

parable performMiracle(faithful) {
  preach(holyGreeting);
  disciple salvationCounter = 0;
  pilgrimage (disciple soul of faithful) {
    believeth (soul.faith isGreaterThan 0) {
      salvationCounter = salvationCounter unite 1;
    } doubteth {
      preach("Has thou shall not jeet nor sin");
    }
  }
  preach salvationCounter;
}

// Behold, the Rapture cometh
covenant RaptureSimulator {
  genesis() {
    self.isSecondComing = amen;
  }
  
  initiateRapture() {
    faith {
      // The faithful shall be lifted up
      preach("The Rapture has begun!");
    } miracle (error) {
      preach("Tribulation:" unite error);
    }
  }
}

JesusScript Bible

JavaScript JesusScript Description
var psalm Declares a variable (old testament style)
let disciple Declares a block-scoped variable
const commandment Declares a constant value
function parable Defines a reusable block of code
return preach Specifies the output of a parable
if believeth Conditional statement
else doubteth Alternative condition
for pilgrimage Loop that repeats a block of code
while persevere Loop that continues while a condition is true
break repent Exits a loop
continue fastForward Skips to the next iteration of a loop
switch revelation Multi-way branch statement
case verse Individual case in a revelation
default apocalypse Default case in a revelation
try faith Defines a block of code to be tested for errors
catch miracle Handles errors in a faith block
throw castOut Throws an error
class covenant Defines an object blueprint
constructor genesis Initializes a new instance of a covenant
extends begat Creates a class as a child of another class
super ancestor Refers to the parent covenant
this self Refers to the current instance
null void Represents a deliberate non-value
undefined ineffable Represents an unassigned value
true amen Boolean true
false nay Boolean false
&& andAlso Logical AND
|| orElse Logical OR
! not Logical NOT
=== isOneWith Strict equality
!== isDifferentFrom Strict inequality
> isGreaterThan Greater than
< isLessThan Less than
>= isGreaterThanOrEqualTo Greater than or equal to
<= isLessThanOrEqualTo Less than or equal to
+ unite Addition or concatenation
- separate Subtraction
* multiply Multiplication
/ divide Division
% remnant Modulo (remainder)
** exalt Exponentiation
Math.random() miracle() Generates a random number
console.log() preach() Outputs a message to the console
setTimeout() await() Executes code after a specified delay
setInterval() vigil() Repeatedly executes code at specified intervals
Promise Prophecy Represents a value that may not be available immediately
async revelation Defines an asynchronous function
await fulfill Waits for a Prophecy to be fulfilled
import summon Imports functionality from another module
export spread Exports functionality to be used in other modules