Extract keys from Javascript object

Write a function that takes an object (a) as argument. Return an array with all object keys.
JavaScript
Console