+ 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)
3 Respuestas
+ 1
uhhh, so what u need help with?
0
Your Mom How to console all elements in object without methods?
0
let props = {
name: "Antony",
age: 29,
SayHi: ()=>"hello"
}
console.log(props.name, props.age);