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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s