Ruby vs Javascript Syntax

I’ve played around with three languages since starting to learn to code: Python, Ruby, and Javascript. Ruby and Javascript have become my main focus lately, but even with a narrowed field, I still get mixed up between the syntax of the two languages. Usually, when switching from one to the other, it takes me a while to “warm up” and get in the flow of writing code.

I made a few simple examples for myself to refresh my memory when switching between Ruby and Javascript.

javascript%2fruby%2fpython

Advertisements