JavaScript Interview Questions- Machine Coding - Most Asked Question|Reverse Word in String
HTML-код
- Опубликовано: 12 сен 2024
- In JavaScript Interview there would be few questions to test your knowledge on built in functions , you must be comfortable with Arrays/Strings functions and in this video, I have talked about same.
Watch the complete video till the end to understand it completely
Checkout my Instagram account to find the latest notes on React, Angular and Javascript.
Instagram handler Name: @nishasingla05
Watch complete video to understand in depth.
Support my channel by liking and sharing my videos so that I can reach to wider audience. Please share it in your network 🙏
►Checkout JavaScript Interview Playlist
• Frontend Interview Que...
►Checkout ES6 Playlist
/ playlistlist=plc8okhrv...
►Click here to Subscribe the channel:
studio.youtube....
►Angular Complete Course:
ruclips.net/user/pl....
►All important shorts videos:
ruclips.net/user/pl....
Connect with Me On Social Media
Facebook: / angularjs4be. .
LinkedIn: / nisha-sin. .
Instagram : / nishasingla05
Twitter: / nishasingla05
#nishasingla #javascript #interview
Hello, Nisha. Thank you for sharing this. Your javascript playlists have been extremely useful to me. make more javascript and reactjs interview question videos
Thanks for sharing this, thank you so so much🙏
Please make more interview questions JavaScript series 👍💯
Good Approach this javascritp coding. thank you
I was also given the same question but they told me not to use modern js like ES6. Instead of using nested for loop..
If they had told you not to use reverse and make your own reverse function that is understandable but telling you not to use ES6 that's a Red Flag
@@sumanthprabhu11 const input = 'i love javascript';
function reverseString(input) {
let output = ''
input = input.split(' ');
for(let i=0;i=0;j--) {
str += word[j];
}
output += str + " ";
}
return output;
}
console.log(reverseString(input));
Very nice explanation!!
👌👌
Single line of code
'i love javascript'.split('').reverse ().join('')
If you put split and join not space then it return tpircsavaj evol i and i you put space split and join then it will return javascript love i
Thank you so much❤😊
const input = 'i love javascript';
function reverseString(input) {
let output = ''
input = input.split(' ');
for(let i=0;i=0;j--) {
str += word[j];
}
output += str + " ";
}
return output;
}
console.log(reverseString(input));