target('3/jan')
.then( set => set('stop eating sugar') )
.then(success => console.log('See how easy that was'))
let marathon = target('5am/31/dec')
.then(set => set('run 30 mins, bike 10 mins, row 10 mins') )
.then(repeat('3 times a week, adding 10 mins to the run each time') )
.catch( error => {
console.log("nice try, there's no error here,")
marathon.then(repeat('see, you just needed a day off') )
})
marathon
.then(end=> {
console.log("august: ran 42.195 kilometres")
})
.then(success => {
console.log("tweet that bronze medal :) ")
})
.catch(error => {
console.log("in december 2017, you could only walk for 10k, now you can just shy of the targeted length, not bad")
})
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: What's your promise for 2018?
For further actions, you may consider blocking this person and/or reporting abuse