June 12, 2019
Symbols and Variables in Ruby & Destructuring in JS
Symbols and Variables in Ruby Symbols and variables are very different things in Ruby. Symbols are like strings, they’re immutable and behave like constants. All equal symbols point to the same memory location. Variables, on the other hand, are references to some objects and can reference symbols. a = “test”…