← All tasks
🌳
Programming Beginner

Null Coalescing Operator ??

⏱ 3 min ⭐ 70 XP 🔁 3 attempts allowed

What you'll do

Pick the correct behavior of the ?? operator.

Scenario

$name = $_GET['name'] ?? 'Guest'; is used to provide a fallback value.

Ready to try it?

Create a free account and try "Null Coalescing Operator ??" free for 7 days, no card required. Earn 70 XP and track your internship progress.

Already have an account? Sign in