ASCII and characters


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ?A # => 65
  2. 65.chr # => A
  3.  
  4. s = "hello"
  5. s[0] # => 104
  6. s[0].chr # => h

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.