Home » JavaScript

Tricky javaScript interview questions

javascript-interview-questions-answers

Here I am going to discuss some really tricky javaScript interview questions. 1. What will be the output of the below code?

Ans. This is the really tricky javaScript interview question for JavaScript developer. The output of this code will be 1undefined because here we have function statement function fun(){} inside if so it returns true. And here fun is function expression not a function statement, therefore, it will be undefined here. 2. Write a single line statement to remove all duplicate elements from below given array or any array

Ans. To answer this question, I am going… Read More

Read More »

how to start working with socket.io

how to start working with socket.io

Introduction Socket.io is real time javaScript library which enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed. It has two parts: a client-side library that runs in the browser, and a server-side library for Node.js. Both components have a nearly identical API. Like Node.js, it is event-driven. You can create instant message , real time notification, real time data analytics etc. Who can learn? If you are a web developer or a student with knowledge of Node.js & JavaScript and want to create some really great real time application with… Read More

Read More »