all what I want to know, what I can do with it
It's easier than you think, If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application.
Javascript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.
Javascript is one of most popular programming language for the web. It is widely used for creating interactive client-side web applications and games. Javascript can be also used as server-side programming language. It is dynamic, weakly typed, prototype-based and multi-paradigm high-level programming language. Here we have listed 10 Common Javascript Interview Questions with their answers
-
What will be the output of variable x,y,z? var x=10; var y=x++; var z=++x; console.log(x,y,z) Ans: It will log 12,10,12
-
What will be output of 0==-0 Answer: output of 0==-0 is true
-
What is the output of below code function xyz () { var abc = "hello Js"; function abc () { return 54; } return abc; } console.log(xyz()) Answer: The above code will output hello Js.
-
How to create an object in JavaScript? Ans: Creating an object In Javascript var object ={ name: "obj", age: 10 };
-
Explain prototypal Inheritance in JavaScript? In JS every object has a property called a prototype, where we can add methods to it and when you create another object from these the newly created object will automatically inherit its parent’s property.
-
Explain callback in JavaScript? A callback is a plain JavaScript function passed to some method as an argument or option. Some callbacks are just events, called to give the user a chance to react when a certain state is triggered.
-
How would you empty the below array in JavaScript? Var emptyArray = ['this', 'array', 'is', 'full']; Ans: Use below line of code to empty an array in JavaScript emptyArray.length = 0; emptyArray.splice(0, emptyArray.length); while(emptyArray.length){ emptyArray.pop(); } emptyArray = [];
-
What will be output of below code? var lorem = { ipsum : 1}; var output = (function(){ delete lorem.ipsum; return lorem.ipsum; })(); console.log(output); Ans: The output would be undefined, because the delete operator removed the property "ipsum" from the object "lorem" before the object was returned. When you reference a deleted property, the result is undefined.
-
What is output of 5 + 4 + "3"? Since 3 is a string then output of above code will 93.
10.What is the real name of Javascript? The original name of Javascript is Mocha by the Marc Addressed. He was the founder of Netscape.