12 lines
343 B
Plaintext
12 lines
343 B
Plaintext
<h1>Several increasingly silly ways of displaying “Hello world!”:</h1>
|
|
|
|
<p><%= "Hello world!" %></p>
|
|
<p><%= "Hello" + " world!" %></p>
|
|
<p><%= w = "world"
|
|
"Hello #{w}!" %></p>
|
|
<p><%= 'H' + ?e.chr + ('l' * 2) %><%= ('o word!').gsub('d', 'ld')%></p>
|
|
|
|
<% hello = "Hello" %>
|
|
<% world = "world!" %>
|
|
<%= hello %> <%= world %>
|