Tsallaka zuwa abun ciki
Justice Tech School

Variables

Double braces print a value. Use dots to read attributes, keys and list positions. Missing values become empty text.

Example
<p>{{ user.username }}</p>
<p>{{ post.title }}</p>
<p>{{ items.0 }}</p>
<p>{{ data.key }}</p>

Exercise

Print a variable.

 name }}

Quiz Test

How do you read an attribute?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.