Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 846 Bytes

LICENSE.md

File metadata and controls

64 lines (48 loc) · 846 Bytes

Examples

Congratulations! You found the hidden examples page!

Here are some examples of DreamBerd in action!

Hello world

Hello world?

FizzBuzz

const var i: Int!

when (i % 3 = 0 && i % 5 = 0) "FizzBuzz"?
else when (i % 3 = 0) "Fizz"?
else when (i % 5 = 0) "Buzz"?
else i?

when (i < 20) i++!
i = 0!

Fibonacci

functi fibonacci (n) => {
   const var sum = 1!
   const var i = 0!
   when (i < n) {
      sum += sum + previous sum!
      i++!
   }
}

when (i < 10) {
   fibonacci(i)?
   i++!
}

Counter

const var count = 0!
var const Button = <button></button>!
when count Button.textContent = Count: £{count}!
Button.addEventListener click => count++!
document.body.append Button!

The Billion Dollar Mistake

delete null!

Autocomplete Example

c