133
rated 0 times
[
135]
[
2]
/ answers: 1 / hits: 15533
/ 5 Years ago, sat, june 1, 2019, 12:00:00
I need to create an object with some non-defined values.
I know how to declare an empty string- in example that would be a object.name. But what would be an empty numeric value. What do I need to put instead of word 'number' in object.age property to tell the javaScript it can be any number?
let object = {
name : ''
age : number
}
More From » javascript