Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 703 Bytes

File metadata and controls

29 lines (21 loc) · 703 Bytes
title Run Scala and Typescript code in articles
date 2019-03-21

Powered by Typescript Service and Scastie, GitPress supports Markdown extension for Scala and Typescript.

You could enable this feature using Markdown's code block syntax.

Check the source of this post to learn how to use them.

Scala

def sayHello(person: String): Unit = {
  println("Hello, " + person)
}
sayHello("Ada")

Typescript

function sayHello(person: string) {
  console.log("Hello, " + person);
}
sayHello("Ada");