All Posts

A post with some code

Here is a custom block type with some code in it:

function factorial(n) {
  if (n === 0) {
    return 1;  // 0! = 1
    }
    return n * factorial(n - 1);
}

factorial(3); // returns 6

We can even do Python!

def printThisString(string):
  print(string)
  
printThisString('Is this the room for an argument?')