def greeting(name)
puts "Hello #{name}"
end
greeting("Anna")
{% tabs %} {% tab title="Ruby" %}
def greeting(name)
puts "Hello #{name}"
end
greeting("Anna")
{% endtab %}
{% tab title="Elixir" %}
greeting = fn (name) -> "Hello, #{name}!" end
greeting.("Anna")
{% endtab %} {% endtabs %}
{% code title="greeting.rb" %}
def greeting(name)
puts "Hello #{name}"
end
greeting("Anna")
{% endcode %}
{% code title="index.js" overflow="wrap" lineNumbers="true" %}
import * as React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, window.document.getElementById('root'));
{% endcode %}