Back

Objects & Classes / Access Property

00:00
1/20

Access Property

Easy

Write a function getName(obj) that returns the name property of an object.

  • 1

    Use dot notation: obj.name.

JAVASCRIPT PLAYGROUND
JAVASCRIPT PLAYGROUND
⏳ Loading editor…