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

Monthly Archive: September 2016

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...

0

How to test random dice roll function?

Given a function, `const RandomDiceRoll = () => return num; ` which returns a random number between 1 to 6. As a tester for this function, how would you verify that the function returns the...