Strings
&str and String, length, uppercase (to_uppercase), and concatenation.
Simple enough for a 5-year-old to understand
Create a String and get its length
String literals are &str; String is used for growable text.
fn main() { let mut s = String::from("Hex"); s.push_str("Library"); println!("{} {}", s, s.len());}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: HEXLIBRARY