JavaScriptでrubyのreturn ifっぽく

ruby

return "hello" if true

JS

if(true) return "hello"