Complete the code to display a greeting message using a component expression.
<h1>Hello, [1]!</h1>The expression inside curly braces {} is used to insert dynamic values in Astro components.
Complete the code to conditionally render a message only if the user is logged in.
{% if [1] %}
<p>Welcome back!</p>
{% endif %}The condition inside the if statement should be a boolean variable that indicates if the user is logged in.
Fix the error in the conditional expression to correctly show the user's name if it exists.
{% if [1] %}
<p>Hello, {userName}!</p>
{% endif %}= instead of comparison !==.The condition should check if userName is not undefined to safely display it.
Fill both blanks to render a message if the user is an admin and the account is active.
{% if [1] && [2] %}
<p>Admin access granted.</p>
{% endif %}Both conditions must be true: user role is 'admin' and account is active.
Fill all three blanks to create a dictionary with keys as uppercase user names and values as their status if status is 'active'.
{
[1]: [2] for user, status in users.items() if status [3] 'active'
}== instead of strict.The key is the uppercase user name, the value is the status, and the condition checks strict equality to 'active'.
