Skip to main content

Posts

Top 10 Javascript (ES6+) Interview Questions with sample code

Welcome to the world of JavaScript interview questions! If you're preparing for a job interview as a JavaScript developer, you've come to the right place. We've compiled a list of the most common questions that you may encounter during your interview, along with some tips and sample answers to help you showcase your skills and knowledge. Whether you're an experienced developer or just starting out, this guide will provide you with a comprehensive understanding of the concepts and best practices of JavaScript. So, grab a cup of coffee, get comfortable, and let's dive into the world of JavaScript interview questions!  What is the difference between let and var in JavaScript? var is function scoped, whereas let is block scoped. This means that a variable declared with var can be accessed within the entire function, whereas a variable declared with let can only be accessed within the block in which it was declared. Example: //var function testVar() { var x =
Recent posts

10 Javascript interview questions

What's the difference between let, var and const in JavaScript? var is function scoped and it can be re-declared and updated. let and const are block scoped, which means they are only accessible within the block they are defined in. let can be updated, but not re-declared. const is used for variables that shouldn't be reassigned. How do you create a function in JavaScript? Functions can be created using the function keyword, followed by the name of the function, a set of parentheses and a set of curly braces. Example: function exampleFunction() {      // function code here } Can you explain the difference between == and === in JavaScript? == compares values for equality and will perform type coercion if needed. === compares values and their type, and will only return true if the values and types are the same. What is Hoisting in Javascript? In JavaScript, hoisting is the behavior where variable and function declarations are moved to the top of their scope at the time of executi

Loading multiple instances of Skype on a Windows machine

Have you ever been in a situation when you had 1 PC available and your wife or friend also needed to be online at the same time? Or are you 1 of those people with multiple Skype IDs to keep home and business apart and had a situation when you wanted to come online from both your IDs at the same time? Well, the old school way is to go online 1 at a time or may be use 1 on a smartphone and other on your PC. But guess what? Microsoft was thoughtful enough to add an option that comes along the default Skype installation that can solve this problem for you. All what you have to do is to perform 2 simple steps: Step 1: Load "Run" window by pressing "Window + R" keys together. If you are new to using key combinations, here is how its done. Press and hold "Window" key from your keyboard and with that key being pressed, also press "R" key and you are done. Now you can release both keys. Step 2: Copy and Paste the following string in the "