在红宝石中,我们可以这样做
print "How old are you? "
age = gets.chomp()
print "How tall are you? "
height = gets.chomp()
print "How much do you weigh? "
weight = gets.chomp()
puts "So, you're #{age} years old, #{height} tall and #{weight} heavy."
它会喜欢这个
但是如何在nodejs中做到这一点?