0votes
1 answerWhat is the difference between a symbol and a string in Ruby?
Hash examples sometimes use symbols as keys and sometimes use strings.

Find answers to your programming questions.
Hash examples sometimes use symbols as keys and sometimes use strings.
I want to transform every element and keep the transformed results.
I am creating a login system and need to store passwords without keeping plaintext.
jsondecode returns objects by default, but my code expects array keys.
I need to query a database using a value from an HTML form.
A variable contains zero or an empty string. Why do these checks return different results?
I see a trailing question mark after fallible calls. How does it change control flow?
Loose comparisons produce unexpected matches in my PHP code. How does strict comparison help?