I have to implement the helloProperties(obj)
function.
This function takes as parameter obj
an object like this one:
{
john: 12,
brian: true,
doe: 'hi',
fred: false
}
And returns an array containing its property names, prefixed with "Hello-"
, like this:
['Hello-john', 'Hello-brian', 'Hello-doe', 'Hello-fred']
obj
is always defined and is always a JavaScript object.
So i did that code below:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…