promisify

Create a function to turn any function into a "promisfied" function. Any function to be promisified will always have a callback as the last argument.…

HTML Interview Questions

What is doctype? Why do you need it? doctype tells the browser to parse the document as html5. Else it will guess how to parse it and can go into quirks mode. <!DOCTYPE html> It is the first tag of a valid html file, is not case-sensitive and…