Can you help me please, JS | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Can you help me please, JS

The program declares a props object, which has a set of properties. Declare the getValue() function, which outputs to the console a string with all properties and their values (without methods). Bind the props object as the context of the getValue() function and assign the resulting function to the getValue variable. Example of variable values: props= { name: "Antony", age: 29, SayHi: ()=>"hello" } Result example: Property values of the props object (name: Antony, age: 29)

11th Aug 2022, 7:51 PM
Yasha Mayorov
Yasha Mayorov - avatar
3 Antworten
+ 1
uhhh, so what u need help with?
11th Aug 2022, 8:44 PM
Junior
Junior - avatar
0
Your Mom How to console all elements in object without methods?
12th Aug 2022, 11:41 AM
Yasha Mayorov
Yasha Mayorov - avatar
0
let props = { name: "Antony", age: 29, SayHi: ()=>"hello" } console.log(props.name, props.age);
12th Aug 2022, 12:28 PM
Junior
Junior - avatar