Tests: <HTMLElement>.getAttr()

Read attributes:

Usage: <HTMLElement>.attr(name <String>)

Read (the 'data-num' attribute is read and added after each item):

Write attributes to existing elements (check in element inspector or console):