Posts

Showing posts with the label Java Script

ECMA Script - ES6 Features

 Why Should I Learn ES6? React uses ES6, and you should be familiar with some of the new features like: Classes Arrow Functions Variables (let, const, var) Array Methods like .map() Destructuring Modules Ternary Operator Spread Operator function calc(a,b){ const add = a+b; const sub = a-b; const mul = a*b; const div = a/b; return [add,sub,mul,div]; } const [add,sub,mul,div] = calc(2,2); console.log(calc(2,2));

Java Script Interview Questions

Q1. What is the difference between Java & JavaScript? Java JavaScript Java is an OOP programming language. JavaScript is an OOP scripting language. It creates applications that run in a virtual machine or browser. The code is run on a browser only. Java code needs to be compiled. JavaScript code are all in the form of text. Q2. What is JavaScript? JavaScript  is a  lightweight ,  interpreted  programming language with object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers. Q3. What are the data types supported by JavaScript?   The  data types  supported by JavaScript are: Undefined Null Boolean String Symbol Num...