rddill-IBM / ZeroToBlockchain

Tutorial for Zero to Blockchain series
342 stars 924 forks source link

Update sample_complete.js #26

Closed danjdk closed 6 years ago

danjdk commented 6 years ago

Assume conditionals such as if (purchase.order.status = JSON.stringify(orderStatus.Created)) will be treated as assignment statements rather than a conditional resulting in a boolean value appropriate for an if statement. Proposing this change