-
Niki Mehra
Rs. PRICE ON REQUEST{ let words = titleElement.textContent.trim().split(/\s+/); // Trim and split by whitespace if (words.length > 0) { words = words.map((word, index) => { // Skip processing for the first word if (index === 0) { return word; // First word remains unchanged } else { // Process words from the second position onwards return excludeWords.includes(word.toLowerCase()) ? word.toLowerCase() : capitalize(word); } }); titleElement.textContent = words.join(" "); console.log(`Updated title: ${titleElement.textContent}`); } }); function capitalize(word) { return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); } });Akanksha Sethi
Rs. PRICE ON REQUEST{ let words = titleElement.textContent.trim().split(/\s+/); // Trim and split by whitespace if (words.length > 0) { words = words.map((word, index) => { // Skip processing for the first word if (index === 0) { return word; // First word remains unchanged } else { // Process words from the second position onwards return excludeWords.includes(word.toLowerCase()) ? word.toLowerCase() : capitalize(word); } }); titleElement.textContent = words.join(" "); console.log(`Updated title: ${titleElement.textContent}`); } }); function capitalize(word) { return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); } });Radhika Sharma
Rs. PRICE ON REQUEST{ let words = titleElement.textContent.trim().split(/\s+/); // Trim and split by whitespace if (words.length > 0) { words = words.map((word, index) => { // Skip processing for the first word if (index === 0) { return word; // First word remains unchanged } else { // Process words from the second position onwards return excludeWords.includes(word.toLowerCase()) ? word.toLowerCase() : capitalize(word); } }); titleElement.textContent = words.join(" "); console.log(`Updated title: ${titleElement.textContent}`); } }); function capitalize(word) { return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); } });Shloka Mehta
Rs. PRICE ON REQUESTRicha Chadha
Rs. PRICE ON REQUEST- Choosing a selection results in a full page refresh.