KGKushal Guptainkushalgupta.hashnode.dev·May 29, 2021 · 1 min readDay To Day Utility snippetQ) create java stream for hard coded source A : use Stream.of() eg: Stream<Integer> stream= Stream.of(1,2,3,4); Q) Arrays from java.unit , useful methods A 1) Arrays.asList - create list from hard code value asList(...arg)= return new ArrayList<>(...00
KGKushal Guptainkushalgupta.hashnode.dev·Apr 25, 2021 · 3 min readJavaScript HoistingDuring the creation phase, the JavaScript engine moves the variable and function declarations to the top of your code. This feature is known as hoisting in JavaScript. when you execute JS code, JavaScript Engine creates Gobal Execution Context - wh...00
KGKushal Guptainkushalgupta.hashnode.dev·Apr 25, 2021 · 2 min readJavaScript Interview NotesQ1) What is JavaScript ? JavaScript is a programming language initially designed to interact with elements of web pages. In web browsers, JavaScript consists of three main parts: ECMAScript that provides the core functionality. The Document Object ...00
KGKushal Guptainkushalgupta.hashnode.dev·Jan 26, 2021 · 6 min readJavascript - ES6 - Notes1. Differences Between the var and let Keywords var camper = 'James'; var camper = 'David'; console.log(camper); // logs 'David' As you can see in the code above, the camper variable is originally declared as James and then overridden to be David. In...00
KGKushal Guptainkushalgupta.hashnode.dev·Jan 25, 2021 · 8 min readJavaScript Basics - Notes1. comments : multi-line use /*** **/ and in-line use // 2. JavaScript Variables : Variable names can be made up of numbers, letters, and $ or _, but may not contain spaces or start with a number When JavaScript variables are declared, they ...01K