VO1) Even if you insert a value lower than zero, it will return true, for example if you have an account with negative balance. You could add a aditional condition: this.hasMoney = !!cash && cash > 0;Comment·Article·Jan 19, 2018·12 Extremely Useful Hacks for JavaScript