10 lines
244 B
Plaintext
10 lines
244 B
Plaintext
// Parsing produces an AST; it does not execute these functions.
|
|
function echo(text: String): String {
|
|
let result = text
|
|
return result
|
|
}
|
|
|
|
function discountedPrice(price: Number, discount: Number): Number {
|
|
return price - discount
|
|
}
|