JavaScript Live Coding Interview (Mock) - Javascript interview questions #javascript #reactjs

preview_player
Показать описание
Live javascript coding round with a 1 year experienced candidate.

🤯 Crash Courses (Single Video)

🧑‍🏫 Full Course Playlists

💻 Projects Playlists

🕹 Mini Projects (Single Video)

Рекомендации по теме
Комментарии
Автор



JavaScript Interview Shorts:

React Interview Shorts :


REACT Interview Shorts :

JAVASCRIPT Interview Shorts:


coderdost
Автор

yes, we can do that, first we have to make our function to reverse the string, the add the function to String.prototype, after this we can get that function in any where in the code.

anilraj
Автор

great content sir thank u for making this type of videos

shaikmahaboobjani
Автор

21:05 Yes, it is possible in Js to create a reverse() method that can reverse any string and it can be done by adding your custom reverse logic to String.prototype

prakashbanjade
Автор

My answer to the Sum 1:
let string = "This is JavaScript Mock Interview";
let newS = "";
let stringBreak = string.split(" ");
for(let i of stringBreak){
var chars = i.split('');
var reversedChars = chars.reverse();
var reversedString = reversedChars.join('');
newS += " " + reversedString;
}
console.log(newS)

suryateja
Автор

reverse function is apply on the array only, not string or number

AkashSingh-xfbd
Автор

let str = "This is JavaScript Code";
let result = str.split(" ").map((el) => ");
console.log("result: ", result);

Its_Abhi_Thakur
Автор

function reverseString(str) {
let revArray = [];
let strlength = str.split(' ');
for (let i = 0; i < strlength.length; i++) {
let a =
revArray.push(a)
}
return revArray.join(" ")
}

is javascript code"))

nageshswamii
Автор

1st :
const rev = (str)=> {
let lineRev = inp.split(" ").reverse()
return lineRev.map(word=>
}

nitishgupta
Автор

Great content!! Can catch the intensity by putting ourself to that question

Hoping to expect a shorts video/ 2-4 mins one on various questions in future :)

Thanks for the Wonderful content!!!

anujadi
Автор

JavaScript, as in many other languages, strings are immutable. This means that once a string is created, its content cannot be directly modified. Therefore, any attempt to "reverse" the string will not alter the original string but instead create a new string that contains the reversed characters

chinmayjain
Автор

const string="This is Javascript code"

let str1=string.split(""). reverse ().join("")
let str2=str1.split(" "). reverse ().join(" ")

Console.log(str2)

vikashojhabhojpuriya
Автор

After solving the many dsa question this question look likes the 1+1

FreeTrial
Автор

Please add some difficult questions for person having more than 4+ years of experience.

himanshuarora
Автор

Yes possible three ways
1) str.split ("").reverse ().join ("")
2)let result =""
Inside for(let i=0;i<str.length;i++) {
result =Str[i]+result
}
Cl(result)
3)let result1 =""
Inside for(let i=str.length-1;i>=0;i--) {
result1 +=Str[i]
}
Cl(result1)

sumitpatil
Автор

2nd:

const maxChar = (str) => {
let arr = str.split("");
let count = 0;
let res = "";

arr.forEach((ch) => {
let innercount = 0;
arr.forEach((el) => {
if (el == ch) {
innercount += 1;
}
});
if (innercount > count) {
count = innercount;
res = ch;
}
});
return res;
};

nitishgupta
Автор

21:41 answer is yes
function reverseString(str) {
return
}
const word = reverseString("this is javascriprt code");
console.log(word);

tusharshrivas
Автор

21:31 Prototype Approch Will Help this scenario.

astokum
Автор

let str="mabujani"
let res=[]
for(let i=0; i<str.length; i++)
{
if(res[str[i]])
{
res[str[i]]++
}
else
{
res[str[i]]=1
}
}

let max=""
let times=0
for(let char in res)
{
if(res[char]>times)
{
times=res[char]
max=char
}
}

console.log(times, max)

shaikmahaboobjani
Автор

ques1:
const str="This is JavaScript"


const ').reverse().join(' ');

console.log(newStr)
}
str.reverse()

pawansinghrawat