①
②
③
①
②
①
②
③
①
②
③
④
⑤
abc = 100var abc = 100;Ruby
JS
abc = 100
p abcvar abc = 100;
console.log(abc);Ruby
JS
abc = ["トム",200,1000]abc = ["トム",200,1000];Ruby
JS
abc = ["トム",200,1000]
p abc.lengthabc = ["トム",200,1000];
console.log(abc.length);Ruby
JS
abc = 100
while abc>=0
  p "これは" + abc.to_s + "点のテストです"
  abc = abc - 1
endRuby
var abc = 100;
while(abc>=0){
    console.log("これは" + abc + "点のテストです");
    abc--;
}JS
matchs = ["マッチ1でーす","マッチ2やでー","マッチ3でゴワスー"]
for m in matchs
  p m
endRuby
matchs = ["マッチ1でーす","マッチ2やでー","マッチ3でゴワスー"]
matchs.each do |m|
  p m
endtest = 80
if test > 70
    p "ヤッター"
elsif test > 50
    p "うーんまぁまぁ"
else
    p "(´;ω;`)"
endRuby
var test = 80;
if(test > 70){
    console.log("ヤッター");
}else if(test > 50){
    console.log("うーんまぁまぁ");
}else{
    console.log("(´;ω;`)");
}
JS
<% abc = 100 %>
<h1>railsテスト</h1>
 <% while abc>=0 %>
    <p>これは<%= abc %>点のテストです</p>
    <% abc = abc - 1%>
<% end %>abc = 100
while abc>=0
    p "これは" + abc.to_s + "点のテストです"
    abc = abc - 1
enderb
Ruby