React js developer interview coding Round |
Vložit
- čas přidán 10. 09. 2024
- ❤️credit : @procodrr
coding Round react js developer,
html css interview questions,
Java developer interview,
javascript interview questions,
react js developer interview questions,
fresher interview,
fresher javascript interview,
fresher React js developer,
front end developer interview questions,
#frontenddeveloper #backend #code #coding #html #css3 #javascript #java
#fresherinterview #development #mncinterview #coding #reactjs
#fullstack
During the interview, the explanation provided by the interviewer could have been clearer. In the first console line, '5' + 3 results in '53' because the + operator performs string concatenation. In the second console line, '5' - 3 results in 2 because JavaScript is a loosely typed language, where the string '5' is implicitly converted to a number, allowing the - operator to perform an arithmetic subtraction.
When i was a fresher these questions felt challenging
now they look so silly :D
But the question is, how did she get selected? If there were a boy in her place, I don't think he would be treated the same
+"12" instead of this we can write "12"-0 It also convert this value as a number
const names = ['Badal', 'Dipa', 'Farju', 'Anik', 'Sourof'];
const heading = document.getElementById('hello');
let currentIndex = 0;
const changeHeading = () => {
// Change the heading's textContent to the current name in the array
heading.textContent = names[currentIndex];
// Increment the index for the next click, and loop back to the beginning if necessary
currentIndex = (currentIndex + 1) % names.length;
}
heading.addEventListener('click', changeHeading);
I like how patiently he answered everything
Kudos
one day you ll show ur talent to everyone, just take it as this is also one of the practice.....good luck ma
❤️
ma? wait.. is this video very old and she is your mummy?
@@sky9k-unlimited its a slang
@@sky9k-unlimited haha
Sir can you explain why you mentioned Selected? bcoz i dont think she will be selected if its an actual interview
HEllo word
const arr = ["susman", "schahs", "dcnh","chuyd"];
let i = 0;
function hello(arr){
if(i > arr.length-1){
i = 0;
hello(arr)
}else{
document.getElementById("header").innerHTML = (arr[i]);
i++
}
}
interview ❌ class ✅
Interview questions u may find in google but not details explaination
😂😂😂😂
0:27 53 and 2 i am saying this without running the code, i guess beginners should read Head First JS book it's really good book for basics
Interview tha ya coaching session? upar se selected bhi.. 😂
Agar interviewer has jaye interview me to smjh jao ho gya kaam tamaam interview ka 😂
javascript. js (file)
const arr=["ABC", "Joy", "Raju"];
let count=0;//count clicks
document. getElementById("hello"). addeventListener("click", function () {
if(count
const arr = ["test1", "test2", "test3", "test4"];
let count = 0;
const hello = document.querySelector("#hello");
hello.addEventListener("click", () => {
console.log("clicked");
if (count > 3) {
count = 0;
}
hello.textContent = arr[count];
count++;
});
Instead of keeping the if condition you can directly use count = count%arr.length it will help to iterate over the array again and again
const arr = ["test1", "test2", "test3", "test4"];
let count = 0;
const hello = document.querySelector("#hello");
hello.addEventListener("click", () => {
console.log("clicked");
if (count > 3) {
count = 0;
}
hello.textContent = arr[count];
count++;
});
Instead of hardcoding the array length like if(count > 3), you can use if(count > arr.length - 1), by that way even if you add more names to the array, your code wont fail. Just a small improvement, apart from that your code works.
@@tabishakhtar9803❤
const arr = ["Name1", "Name2", "Name3", "Name4"];
let i = 0;
const title = document.getElementById("title");
title.addEventListener('click', ()=>{
if(i < arr.length){
title.textContent = arr[i];
i++;
}else{
i = 0;
title.textContent = "Hello World";
}
});
if one is string then one is number.. in order for your to have numerical value.. you must put Number("5") + 3 UNLESS just a simple string
05:17
He said, it will convert either into number or into string, Which is totally worng, Interviewer either should say, check and reserch why and how its hapeening, he should not fire in the air.
4:12 1st one true bcz it's equal to, and 2nd one is false bcz it's strict equal to, to get true in === two value has to be same type and same value while for == if two value has different type then it's try to convert into same type
i can literally answer all the question but i am still jobless i dont know what to do
Better to create advanced react or angular projects and attractive portfolio
At finally how to get print the array names in loop
Const array = [“a”,”b”,”c”,”d”]
Const h1 = document.get elementbyid(“h1”)
Var index = 0
function changename(){
Index= index === array.length -1 ? 0 : index+1
h1.textcontent = array[index]
}
h1.addeventlistener(“click”, changename)
I wonder how those are get placed think this channel is just an institute
God this interview was unbearable, how am i unemployed and she got a job
import React, {useState} from 'react'
const ChangeName = () => {
const [Name, setName] = useState("Dude");
const [Counter, setCounter] = useState(0);
const NameArr = ["Amar", "Akbar", "Anthony"]
const count = 2;
const HandleName = () =>{
if(Counter
Why did you use this much of code. We can complete it by 2 lines. LoL 😂😂😂😂
console.log(11)
Why first is true and second is false because true is equal to 1
11 false...so ans is false
Isko select kia tho main to selected hu bhai .
Bakar ka main pressure la raha tha 🤣
😆😆
😂😂
Bhai wo ladki hai
I am good in front end how will I got interviews
fill google form link another video description here and try to mock interview
Help full Video for preperations
Keep watching
This all were mock interviews not is just for practise not an real
How she is selected. She doesn't know coercion
Commitment
She will be a good developer soon.
i wish interview questions to be same in my country xD
const arr = ["A","B","C","D"]
const target = document.getElementById("hello")
target.onclick = function(){
let findIndex = arr.indexOf(this.innerHTML)
let nextIndex = findIndex
if(findIndex < 0 || findIndex >= arr.length-1){
nextIndex = 0
}else{
nextIndex++
}
target.innerText = arr[nextIndex]
}
where do you get selected with this level of knowledge ?
sorry but sister dont even know how to declare variable what does it means to be selected ?
That is a video only created for like an interview that's it
Needs to practice more. Best of luck
these are basic question these type question they are asking me as in not even as fresher round
bhai ye itna easy interview kon leta hai 😂😂 Mere se kitna tough questions pucha tha 🤐🤐
Ky ky poucha th esa .. jo tmhe itna tough lga
what the fuck is happening here
Now Again
14:00
NaN === NaN gives false : His reasoning because it can come from any string.
okay boss
lets try with same string then, its should give you true then eright?
let str='Hello'
console.log(+str == +str ) // always false
console.log(+str === +str ) // always false
IDK know the actual reason, but commenting to know the exact reson and asking these type of interviewers not ask these type of questions or atleast give proper reasoning, or ask candidate to research about it.
This class going on
Plz dear sir provided interview in hindi
Flutter interview?
Anyone who support me to give react js developer job
itna hallu question me selection
If this was an interview.I will clear,Easily
const arr = ["Hi", "raju"]
let index = 0
document.getElementById("helloid").addEventListener("click", function(){
const studentsName = document.getElementById("helloid")
studentsName.textContent = arr[index]
index++;
if(index >= arr.length){
index = 0;
}
})