Hy everybody!
This is my code. But the function() not working. I stuck… Please help me!
I wanna:
if (value not empty string && object has property) {give value for property}
else if ( value not empty string && object not has property) {give new property and value too}
You have not declared the variable named type. You need to do that first. Maybe you did not mean to use a variable for the second argument passed to the function?
Thank you your answer.
I have an object{carObj} and I want to build a function addYourCar(). It´s similar to FCC, Javascript, Record collection. When somebody give property and value: type, Audi or color, black or new property wheel, 17…then search tought carObj && make new property with value || refresh property with new value.
Thank you very much!