Exercise: let arr=[5,8,10,7,9,11] arr.splice(3,3,17,19,111) console.log(arr) arr.unshift(100) console.log(arr) arr.push(200,1000) console.log(arr) arr.splice(arr.length/2,0,0) console.log(arr)
good Explanation . I got all the videos in nice understanding of all concepts.Thank u So much
WordsCalculator: <body> <h1 id="message">Calculate Words</h1> <div id="wrapper"> <h2>Type a Sentence</h2> <div id="textarea"> <textarea id="text" type="textarea" placeholder="Type Something"></textarea> </div> <div> <button type="submit" onclick="Calcualte()">Calculate Words</button> </div> <div id="result"> </div> </div> <script> function Calcualte() { let words = document.getElementById("text").value; let cal = words.split(' ').length let result = document.getElementById("result"); result.innerHTML = cal + " words" } </script> </body>
Text word count : HTML Textarea ID = "text-area" Div ID = "result" <Script> function convert(){ 1.let paragraph= document.getElementbyId("text-area").value; 2.let wordsplit = paragraph.split(' '); 3.let wordcount = wordsplit.length; 4.document.getElementById("result") result.innerHTML = wordcount + " Words" }
Mam Your Video daily watch very clear and nice explanation ❤️
18:43 Exercise, Add 1000 at the end. should we add 1000 to 111 or insert 1000 in a new index mam ?😅
Happy Pongal 👍
akka excerice section la erukkura 3rd excs enaku purila please explain pandringala
So when are we allowed to perform methods like shift and pop it means that arrays are mutable right? I can see that we are able to change the same array unlike strings
let arr = [5,8,10,7,9,11] //replace with [7,9,11] to [17,19,111] let a = arr.splice(3,3,17,19,111) console.log(arr) //adding 100 on the last index of array let b = arr.unshift(100) console.log(arr) //insert 200 in last but one position let c = arr.splice(6,0,200) console.log(arr) //insert 1000 at the end let d = arr.push(1000) console.log(arr) //insert 0 on the middle of the index let insert = arr.splice(arr.length -5,0,0) console.log(arr)
let marks = [34,55,66,23,47,99,10]; console.log(marks[marks.length-1]);
Mam,I want offline class for full stack Java. Are you conducting any offline courses??
Hi sis thank u for ur amazing knowledge sharing coding videos...kindly share advanced SQl topics like window function, ER relationship & all sis...sql basics & sql intermediate was really helpful... Sis
Thanks mam
👏👏👏
sister oru doubt empty space kodutha adhuvum word ahh eduthukuthu what can i do
mam I have one doubt this is js code function submit() { const getvalue = document.getElementById("paraText"); const calculate = getvalue.value.split("").length; const result = document.getElementById("result"); result.textContent = calculate + "words"; } but problem is this code is only find how many letters is the input box not find how many words in the paragraph . no idea i have give me a hint or somthing
// Replace 7,9,11 with 17,19,111 Arr.splice(3,3,17,19,111) console.log(Arr) // Insert 100 at the beginning Arr.unshift(100) console.log(Arr) // Insert 200 at last Arr.splice(Arr.length, 0, 200) // Insert 1000 at the end Arr.push(1000) // Insert 0 in the middle Arr.splice(Arr.length/2,0,0) console.log(Arr)
@ahalyaashokan4437