JavaScript string interview questions in Hindi

preview_player
Показать описание
IN this video we will discuss important javascript interview questions on the string in the Hindi language.

The question list is here
convert str in only 1 array,
convert string to array with reach character
convert string to array with space or any sequence
replace any character
Get substring from string
Remove last character
Remove first character
Remove String before specific character
remove extra space from both side

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

"concat" method for concatinating to strings, trimEnd and trimStart for removing spaces from end and start respectively
let str1 = " sagar ";
let str2 = "patel"


console.log(str1);
console.log(str1.trim());
console.log(str1.trimEnd());


thankyou for the informative content.

sagarpatel
Автор

Thankyou sir for these videos it's very helpful for clearing all basics concept of javascript

shivanisoni
Автор

Very helpful contact sir. If you can share some frequently asked coding questions & optimal way to solve this basically from array & string, it will help a lot .

soumyaranjan
Автор

For left str.trimStart and right trimEnd

dipikasaindane
Автор

Hi Anil Sidhu, you are an amazing teacher. I'm learning many things from your videos... Love you sir ❤

yashkumarjani
Автор

Thanks Sir For making the videos on interview questions also please make video on javaScript array interview questions

VishalYadav-qhoq
Автор

make advanced interview questions like how to handle nested objects, arrays or comparison etc

RajYadav-yhvv
Автор

Bro please make a video on interview questions on array as soon as possible it will be a great help ...

g.pavani
Автор

Very useful video sir I tried all your JS interview question by myself, please upload more videos on different topics also

dilipbaghel
Автор

Sir ese hi array k upper, object k upper, times, math, all loops ka alag alag video banana interview questions ke upper 🙌🙌🙌

ArjunKiLife
Автор

Bro please make video on linked list with functional components

lingarajhiroli
Автор

Sir please, can you make video of linked list with functional and thank you 🙏

MohitKumar-nfjn
Автор

Itne easy hone ke bavajud maine JavaScript mai code nahi kiye the toh yadd nahi aa rahe the function konse java vale hai n konse JavaScript vale 2 interview gaye mere ussi chakkar maii

akadeadahot
Автор

agar string operations regex ke jage split replace etc operator use karke koi interview pe select kar raha hai toh samajh jao apka personality test kar raha hai coding se ghanta fark nai parta . coding k basis me yeh methods scalable hi nai hai Regex is scalable learn that for string manipulations and for tiny string operations use these methods only. Regex is specifically made for such tasks don't start with built in operators give some time to understand regex and think on that way, as a beginner i also started with built in functions these are too easy to understand and keep you away from using regex but using Regex is ideal to parse strings . hope this will encourage you to try regex

amirrahman
Автор

Detail study k liye...koi book jo dsa javascript main ho...plz reply

saveenjangra
Автор

Somebody help me in this problem
Please write solution in javascript

Write a function called do_allocation(number_of_people, number_of_buses)

The function should return a list of number of people who can get into the next bus that comes in based on the following logic:

Each bus’s capacity is the sum of the capacities of the previous two buses.

Once all the people get in, then the buses can continue, but will have 0 people inside it.

This is the case when the number of people are less and there are more buses. So after all the people are already boarded, then the remaining buses will have 0 people boarding.

The output of the function is an array/list with the same length as number_of_buses.

The total of this output array/list should be less than or equal to the number_of_people.

The first bus’ capacity can be set to 1 by default.


E.g.


Def  do_allocation(number_of_people, number_of_buses):

      …. Your code….
    Return array[number of people got into first bus, number of people got into second bus, …., number of people who got into last bus]

coder-webdev
Автор

//? remove extra space from left only


//? remove extra space from right only
console.log(str.trimEnd());

AjeetYadav-uzey
Автор

can we convert String “110a” to integer?

rakhamajighagare
Автор

1.) Concat two strings : str1.concat(str2)

2.) Trim left : str1.trimLeft()

3.) Trim right : str1.trimRight()

rihaanaggarwal
welcome to shbcf.ru