Skip to content
Permalink
7914eee056
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (22 sloc) 444 Bytes
'use strict'
const mysql = require('./mysql')
// passing a valid ISBN
mysql.addBook('0596517742', (err, result) => {
if(err) {
console.log('ERROR')
console.log(err.message)
} else {
console.log('NO ERROR')
console.log(result)
}
})
// passing an invalid ISBN
mysql.addBook('059651774', (err, result) => {
if(err) {
console.log('ERROR')
console.log(err.message)
} else {
console.log('NO ERROR')
console.log(result)
}
})