You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
343 B
12 lines
343 B
<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 %>
|