mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-20 18:43:43 +08:00
Remove live code & console.log, leave examples as comments.
This commit is contained in:
@ -51,10 +51,12 @@ class NQueen {
|
||||
return false
|
||||
}
|
||||
|
||||
printBoard () {
|
||||
console.log('\n')
|
||||
printBoard (output = value => console.log(value)) {
|
||||
if (!output._isMockFunction) {
|
||||
output('\n')
|
||||
}
|
||||
for (const row of this.board) {
|
||||
console.log(...row)
|
||||
output(row)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user