···11-# Defining Methods
22-33-Methods allow you to smoothly display code examples in different languages.
44-55-{% method %}
66-## My first method
77-88-My first method exposes how to print a message in JavaScript and Go.
99-1010-{% sample lang="js" %}
1111-Here is how to print a message to `stdout` using JavaScript.
1212-1313-```js
1414-console.log('My first method');
1515-```
1616-1717-{% sample lang="go" %}
1818-Here is how to print a message to `stdout` using Go.
1919-2020-```go
2121-fmt.Println("My first method")
2222-```
2323-2424-{% common %}
2525-Whatever language you are using, the result will be the same.
2626-2727-```bash
2828-$ My first method
2929-```
3030-{% endmethod %}