I got to know about bootcamp through linkedin after watching your videos i started playing around with objects, string & array methods. Now I'm feeling confident with these topics. thank you sir. 👍
While you are able to completed the solution in just 2-3 lines...It takes me multiple lines for same logic. For example in first assignment, i write a separate function for callback function of map. I cannot figure our the logic if I want to write it in 2-3 line, but it simple for me when I work this way. Any suggestion.?
It's completely fine. Does not matter how many lines it is taking. If you do more practice and solve more problems, you will able to manage in one line
Scenario: Write a function that takes a string as input and returns a new string with the first letter of each word lowercased: Example - Input: Hello World, Output: hello world' let myStringTwo = 'Hello World'; console.log('original string:', myStringTwo); let myStringToArrayTwo = myStringTwo.split(' '); console.log('string coverted to array -', myStringToArrayTwo); let stringFirstLetterLower = myStringToArrayTwo.map((currentItem) => { return currentItem[0].toLowerCase() + currentItem.substring(1); }); console.log('Array after lower casing of first letter -', stringFirstLetterLower); //let arrayToString = stringFirstLetterLower.join(' '); console.log('Array converted to string -', stringFirstLetterLower.join(' ')); would the above approach be incorrect since I have not used a function?
I got to know about bootcamp through linkedin after watching your videos i started playing around with objects, string & array methods. Now I'm feeling confident with these topics. thank you sir. 👍
Happy Learning !! Kindly follow the bootcamp and if you stuck somewhere let me know
Nice one !! assignment completion made me feel more closer to javascript
That's great to hear!
Great examples, explanations..Excellent material, thank you
Glad you found this helpful
Hi Ankit, the way you explain its really easy to understand every bit of the code. Thanks buddy.
Glad it helped
Awesome way of delivering the content sir !!!!!!!!!!!!!!!
Glad you liked it
Wonderful session.. Thank you so much Ankit...
Always welcome
57:14 document.querySelectorAll('div'); is returning empty NodeList. Do we need to follow any specific format here.
Document
Enter Number Here:
let element = document.querySelectorAll('div');
console.log('element', element);
function changeHandler(event) {
console.log(event.target.value);
}
It worked when I place at the last of my body tag. For example,
Enter Number Here:
Your js file is loading first then the page. Check it inside the method or load the js file in last
Your way of Explanation is too good. Have u covered Event Propagation i.e. Bubbling and Composed Topic in Series?
Yes
Start a bootcamp on apex development also & bootcamp specific to Sales cloud & Service Cloud all functionalities
I do have in my timeline
loved it
Glad you liked it
Can we use for of loop also instead of array map right sir?
For loop is recommended if you have to modify the same array. If you have to generate a new array with modification then go for map
Could you please differentiate when to use for in , for of, for each, map with examples?
Checkout Javascript looping session
While you are able to completed the solution in just 2-3 lines...It takes me multiple lines for same logic. For example in first assignment, i write a separate function for callback function of map. I cannot figure our the logic if I want to write it in 2-3 line, but it simple for me when I work this way. Any suggestion.?
It's completely fine. Does not matter how many lines it is taking. If you do more practice and solve more problems, you will able to manage in one line
@@TechJourneyWithAnkit yes sir. Will come with practice. Will complete the whole bootcamp 👍
Scenario: Write a function that takes a string as input and returns a new string with the first letter of each word lowercased: Example - Input: Hello World, Output: hello world'
let myStringTwo = 'Hello World';
console.log('original string:', myStringTwo);
let myStringToArrayTwo = myStringTwo.split(' ');
console.log('string coverted to array -', myStringToArrayTwo);
let stringFirstLetterLower = myStringToArrayTwo.map((currentItem) => {
return currentItem[0].toLowerCase() + currentItem.substring(1);
});
console.log('Array after lower casing of first letter -', stringFirstLetterLower);
//let arrayToString = stringFirstLetterLower.join(' ');
console.log('Array converted to string -', stringFirstLetterLower.join(' '));
would the above approach be incorrect since I have not used a function?
Yes this is correct. But if you have to do multiple times same thing then function will be useful
let strEx = "hello"
console.log(strEx.split(""))
let return1 = strEx.split("")
return1.forEach((calc)=>{
obj1[calc] = (obj1[calc]||0)+1
})
Cool