Skip to content

Instantly share code, notes, and snippets.

View ajayjhaDev's full-sized avatar

AJAY KUMAR JHA ajayjhaDev

  • India
View GitHub Profile
Frontend Engineering
https://codeshare.io/XLlwbj
https://codeshare.io/1VbgEq
https://codeshare.io/VN3OoO
Digital Marketing Agency Services
https://codeshare.io/Yz77bQ
@ajayjhaDev
ajayjhaDev / frontend_interview.txt
Last active February 24, 2024 05:34
Frontend Engineer Interview roadmap
1. Problem solving round (dsa or javascript related)
2. Machine coding round or UI Task (either in vanilla JavaScript or React)
3. Theoretical questions on JavaScript, react, next, typescript, web fundamentals, css and html
4. System design (Not to be expert but at least have basic knowledge)
react challenges
coding challenges (array, string ....etc)
@ajayjhaDev
ajayjhaDev / Hooks.txt
Last active February 24, 2024 05:38
Hooks
The useRef Hook allows to persist values between renders.
It store a mutable value that does not cause a re-render when updated.
It is used to access a DOM element.
// Use useRef to keep track of previous state values:
// https://www.w3schools.com/react/showreact.asp?filename=demo2_react_useref3
what are semantic tags
- The semantic tags help the search engines and other user devices to determine the importance and context of web pages.
these are more readability tags like header section main nav footer article aside etc.
diff b/w HTML4 and HTML5
- HTML4 has fewer elements, tags, and attributes compared to HTML5.
how to select nth element in nested element
- using :nth-child()
@ajayjhaDev
ajayjhaDev / NodeExplained.txt
Last active February 24, 2024 05:41
NodeExplained
What is Node Js
It's a JavaScript runtime environment which allows us to run JS code on our operating system or basically out side the browser.
what are the components of NodeJs design pattern
JS world, V8, bindings, c++(libuv) etc..
NodeJs is a singlethreaded or multithreaded
It's singlethreaded and multithreaded as well , actully It's depends upon What task we are performing in nodejs
like if we are writing simple JS code like for loop or any if statement then it's a single thread and
if we are reading file or writing file using file system module then it's multithread.
@ajayjhaDev
ajayjhaDev / Closure_and_Currying.txt
Created December 21, 2022 14:48
Closure_and_Currying
<!-----------Closure------------>
function foo(a){
let x = a + 10;
return function(){
return 5 + x;
@ajayjhaDev
ajayjhaDev / SpaceComplexity.js
Created October 3, 2022 05:03
SpaceComplexity
// total space complexity (TS) = auxillary space complexity (AS) (Algorithmic complexity)+input space compelxexity (IS)
function foo(arr){
// O(1);
let sum=0 // 1
for(let i=0;i<arr.length;i++){
let temp=arr[i]; // O(1)
sum=temp;
@ajayjhaDev
ajayjhaDev / reactexplained.txt
Last active February 24, 2024 05:33
reactexplained
what is react
react is a JavaScript library use to build Single-page application
why we use react js instead of angular or any farmework or what are the Features of React.js
because of it's features
use JSX, - JSX allows us to write HTML elements in JavaScript.
Virtual DOM - Virtual DOM is like a lightweight copy of the Real DOM,
@ajayjhaDev
ajayjhaDev / JSexplained.txt
Last active February 24, 2024 05:32
JSexplained
OOPs..........................................................................................................
Different ways to create an Object
what is prototype
prototype is an object which associate with all the functions and objects in JavaScript by default.
what is prototype chain
whenever we are going to create an object , that object associate with the JavaScript default Object (that is prototype) ,