src/utils/lock.js
//returns true if lock succeeds else 0
returns true if lock succeeds else 0
returns true if lock succeeds else 0
engageLock() {
        if(!this.lock_state){
            this.lock_state = !this.lock_state;
            console.log('Lock Engaged');
        }else{
            console.log('Lock is already disengaged');
        }
    }
engageLock ( ) { if ( ! this . lock_state ) { this . lock_state = ! this . lock_state ; console . log ( 'Lock Engaged' ) ; } else { console . log ( 'Lock is already disengaged' ) ; } }
returns true if lock succeeds else 0
returns true if lock succeeds else 0