String concatenation and << in Ruby
📖 Scenario: You are creating a simple greeting message by joining different parts of text.
🎯 Goal: Build a greeting message by concatenating strings using the + operator and the operator.
📋 What You'll Learn
Create a string variable with a greeting
Create a string variable with a name
Concatenate the greeting and name using
+Add an exclamation mark using
<<Print the final greeting message
💡 Why This Matters
🌍 Real World
Building messages dynamically is common in apps like chat programs, notifications, and user interfaces.
💼 Career
Understanding string manipulation is essential for software development, especially when preparing text output or user messages.
Progress0 / 4 steps