class Person {
constructor(name, address, phone) {
this.name = name;
this.address = address;
this.phone = phone;
}
call() {
console.log(`Calling ${this.phone}...`)
}
}
const tom = new Person('Tom', 'Uden', 0619616);
tom.call();
When calling this, the console only shows "619616". When I add console.log(tom.phone)
it does log the entire number. Why is the zero excluded when calling a method?