Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Contact us
Hide Buttons

Category: Intermediate

0

what does console.log.bind(console) do?

Function#bind allows you to create a new function, whose this value will be set to the value you pass.   Hence, it allows you to abstract the console.log statements. So, you can type : var...

Tower of hanoi 0

Tower of hanoi

Problem : The Towers of Hanoi is a classic puzzle with 3 pegs and multiple disks of different sizes. The goal of the puzzle is to move all the disks from the first peg...