<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									JavaScript - Q&amp;A				            </title>
            <link>https://tutorials7.com/it/qa/javascript/</link>
            <description>Mini Forum Tutorials7.com</description>
            <language>it-IT</language>
            <lastbuilddate>Thu, 05 Mar 2026 17:56:17 +0000</lastbuilddate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Trovare le occorrenze di una parola in una frase - Compito JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/find-occurrences-of-word-in-sentence-javascript-task/</link>
                        <pubdate>Thu, 07 Nov 2024 13:32:09 +0000</pubdate>
                        <description><![CDATA[Write a JS function that finds, how many times a given word, is used in a given sentence. Note that letter case does not matter – it is case-insensitive.
The input comes as 2 string argumen...]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<p>Write a JS function that finds, how many times a given word, is used in a given sentence. Note that letter case does not matter – it is case-insensitive.</p>
<p><strong>The input comes as 2 string arguments:</strong></p>
<ul>
<li>The first one will be the sentence</li>
<li>The second one – the word.</li>
</ul>
<p><strong>Examples:</strong><br /><br /><strong><span>Input:</span></strong><br />The waterfall was so high, that the child couldn’t see its peak.<br />the<br /><br /><strong><span>Output:</span></strong><br />2</p>
<hr />
<p><strong><span>Input:</span></strong><br />How do you plan on achieving that? How? How can you even think of that?<br />how<br /><br /><strong><span>Output:</span></strong><br />3</p>
<hr />
<p><strong><span>Input:</span></strong><br />There was one. Therefore I bought it. I wouldn’t buy it otherwise.<br />there<br /><br /><strong><span>Output:</span></strong><br />1</p>
<hr />
<p>The output is a single number indicating the amount of times the sentence contains the word.</p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>tuto</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/find-occurrences-of-word-in-sentence-javascript-task/</guid>
                    </item>
				                    <item>
                        <title>Contare le parole con le mappe - compito JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/count-words-with-maps-javascript-task/</link>
                        <pubdate>Thu, 07 Nov 2024 13:30:33 +0000</pubdate>
                        <description><![CDATA[You are tasked to count the number of words in a text using a Map, any combination of letters, digits and _ (underscore) should be counted as a word. The words should be stored in a Map - th...]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<p>You are tasked to count the number of words in a text using a Map, any combination of letters, digits and _ (underscore) should be counted as a word. The words should be stored in a Map - the key being the word and the value being the amount of times the word is contained in the text. The matching should be case insensitive. Print the words in a sorted order.</p>
<p>The input comes as an array of strings containing one entry - the text whose words should be counted. The text may consist of more than one sentence.<br /><br /><strong>Examples:</strong><br /><br /><strong><span>Input:</span></strong><br />Far too slow, you're far too slow.<br /><br /><strong><span>Output:</span></strong><br />'far' -&gt; 2 times<br />'re' -&gt; 1 times<br />'slow' -&gt; 2 times<br />'too' -&gt; 2 times<br />'you' -&gt; 1 times</p>
<hr />
<p><strong><span>Input:</span></strong><br />JS devs use Node.js for server-side JS. JS devs use JS. -- JS for devs --<br /><br /><strong><span>Output:</span></strong><br />'devs' -&gt; 3 times<br />'for' -&gt; 2 times<br />'js' -&gt; 6 times<br />'node' -&gt; 1 times<br />'server' -&gt; 1 times<br />'side' -&gt; 1 times<br />'use' -&gt; 2 times</p>
<hr />
<p>The output should be printed on the console - print each word in the map in the format "'&lt;word&gt;' -&gt; &lt;count&gt; times", each on a new line.</p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>trond-wifi</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/count-words-with-maps-javascript-task/</guid>
                    </item>
				                    <item>
                        <title>Può fornire un esempio di lambda function in JavaScript?</title>
                        <link>https://tutorials7.com/it/qa/javascript/can-you-please-give-an-example-of-lambda-function-in-javascript/</link>
                        <pubdate>Thu, 07 Nov 2024 13:07:32 +0000</pubdate>
                        <description><![CDATA[I am still strugling to understand the lambda functions in JavaScript (() =&gt;). Can you please give an example (or some examples) of lambda function used in JavaScript?]]></description>
                        <content:encoded><![CDATA[<p>I am still strugling to understand the lambda functions in JavaScript (() =&gt;). Can you please give an example (or some examples) of lambda function used in JavaScript?</p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>eiorgert</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/can-you-please-give-an-example-of-lambda-function-in-javascript/</guid>
                    </item>
				                    <item>
                        <title>Ordina i numeri in ordine crescente e decrescente in JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/sort-numbers-in-ascending-order-and-descending-order-in-javascript/</link>
                        <pubdate>Thu, 07 Nov 2024 13:05:36 +0000</pubdate>
                        <description><![CDATA[How to sort numbers in ascending order (from the smallest to the largest number. E.g. 5, 9, 13) and descending order (from the largest to the smallest number. E.g. 13, 9, 5) in JavaScript?]]></description>
                        <content:encoded><![CDATA[<p>How to sort numbers in ascending order (from the smallest to the largest number. E.g. 5, 9, 13) and descending order (from the largest to the smallest number. E.g. 13, 9, 5) in JavaScript?</p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>hues</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/sort-numbers-in-ascending-order-and-descending-order-in-javascript/</guid>
                    </item>
				                    <item>
                        <title>Somma di numeri in HTML con JavaScript e DOM</title>
                        <link>https://tutorials7.com/it/qa/javascript/sum-numbers-in-html-with-javascript-and-dom/</link>
                        <pubdate>Thu, 07 Nov 2024 13:04:04 +0000</pubdate>
                        <description><![CDATA[Write a JS function that reads two numbers from input fields in a web page and puts their sum in another field when the user clicks on a button.Input/Output:There will be no input/output, yo...]]></description>
                        <content:encoded><![CDATA[<p>Write a JS function that reads two numbers from input fields in a web page and puts their sum in another field when the user clicks on a button.<br /><br /><strong>Input/Output:</strong><br />There will be no input/output, your program should instead modify the DOM of the given HTML document.</p>
<p><strong>Sample HTML:</strong></p>
<pre contenteditable="false">&lt;input type="text" id="num1" /&gt; +
&lt;input type="text" id="num2" /&gt; =
&lt;input type="text" id="sum" readonly="readonly" /&gt;
&lt;input type="button" value="Calc" onclick="calc()" /&gt;
&lt;script&gt;
    function calc() { 
       // TODO: sum = num1 + num2
    }
&lt;/script&gt;</pre>
<p><strong>Examples:</strong><br /><img src="https://forum.tutorials7.com/images/sum-numbers-javascript.jpg" alt="sum numbers in html with javascript" /></p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>andrew</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/sum-numbers-in-html-with-javascript-and-dom/</guid>
                    </item>
				                    <item>
                        <title>Raccogliere gli elementi dell'elenco in HTML con DOM e JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/collect-list-items-task-in-html-with-dom-and-javascript/</link>
                        <pubdate>Thu, 07 Nov 2024 13:02:14 +0000</pubdate>
                        <description><![CDATA[Write a JS function that scans a given HTML list and appends all collected list items’ text to a text area on the same page when the user clicks on a button.Input/Output:There will be no inp...]]></description>
                        <content:encoded><![CDATA[<p>Write a JS function that scans a given HTML list and appends all collected list items’ text to a text area on the same page when the user clicks on a button.<br /><br /><strong>Input/Output:</strong><br />There will be no input/output, your program should instead modify the DOM of the given HTML document.<br /><br /><strong>Sample HTML:</strong></p>
<pre contenteditable="false">&lt;ul id="items"&gt;
  &lt;li&gt;first item&lt;/li&gt;
  &lt;li&gt;second item&lt;/li&gt;
  &lt;li&gt;third item&lt;/li&gt;
&lt;/ul&gt;
&lt;textarea id="result"&gt;&lt;/textarea&gt;
&lt;br&gt;
&lt;button onclick="extractText()"&gt;Extract Text&lt;/button&gt;
&lt;script&gt;
  function extractText() {
    // TODO
  }
&lt;/script&gt;</pre>
<p><strong>Examples:</strong></p>
<p><strong><img src="https://forum.tutorials7.com/images/collect-list-items.jpg" alt="collect list items in javascript and html and dom" /></strong></p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>richard8502</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/collect-list-items-task-in-html-with-dom-and-javascript/</guid>
                    </item>
				                    <item>
                        <title>Elenco di elementi in HTML con DOM e JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/list-of-items-task-in-html-with-dom-and-javascript/</link>
                        <pubdate>Thu, 07 Nov 2024 12:59:55 +0000</pubdate>
                        <description><![CDATA[Write a JS function that read the text inside an input field and appends the specified text to a list inside an HTML page.Input/Output:There will be no input/output, your program should inst...]]></description>
                        <content:encoded><![CDATA[<p>Write a JS function that read the text inside an input field and appends the specified text to a list inside an HTML page.<br /><br /><strong>Input/Output:</strong><br />There will be no input/output, your program should instead modify the DOM of the given HTML document.<br /><br /><strong>Sample HTML:</strong></p>
<pre contenteditable="false">&lt;h1&gt;List of Items&lt;/h1&gt;
&lt;ul id="items"&gt;&lt;li&gt;First&lt;/li&gt;&lt;li&gt;Second&lt;/li&gt;&lt;/ul&gt;
&lt;input type="text" id="newItemText" /&gt;
&lt;input type="button" value="Add" onclick="addItem()"&gt;
&lt;script&gt;
  function addItem() {
    // TODO: add new item to the list
  }
&lt;/script&gt;</pre>
<p><strong>Examples:</strong></p>
<p><img src="https://forum.tutorials7.com/images/list-of-items-javascript.jpg" alt="list of items javascript task" /></p>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>john7</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/list-of-items-task-in-html-with-dom-and-javascript/</guid>
                    </item>
				                    <item>
                        <title>Ripetere una stringa N volte in JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/repeat-a-string-n-times-in-javascript/</link>
                        <pubdate>Thu, 07 Nov 2024 12:57:56 +0000</pubdate>
                        <description><![CDATA[Write a JavaScript function that repeats a given string, N times.
The input comes as 2 arguments:

The first argument is a string that will represent the one you need to repeat.
The seco...]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<p>Write a JavaScript function that repeats a given string, N times.</p>
<p><strong>The input comes as 2 arguments</strong>:</p>
<ul>
<li>The first argument is a string that will represent the one you need to repeat.</li>
<li>The second one is a number will represent the times you need to repeat it.</li>
</ul>
<p>Examples:<br /><br /><strong><span>Input:</span></strong><br />repeat<br />5<br /><br /><strong><span>Output:</span></strong><br />repeatrepeatrepeatrepeatrepeat</p>
<hr />
<p><strong><span>Input:</span></strong><br />magic is real<br />3<br /><br /><strong><span>Output:</span></strong><br />magic is realmagic is realmagic is real</p>
<hr />
<p>The output is a big string, containing the given one, repeated N times.</p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>madb</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/repeat-a-string-n-times-in-javascript/</guid>
                    </item>
				                    <item>
                        <title>Divisione dell'espressione - compito JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/expression-split-javascript-task/</link>
                        <pubdate>Thu, 07 Nov 2024 12:55:44 +0000</pubdate>
                        <description><![CDATA[Write a JS function that splits a passed in JS code into separate parts.
The passed in code will always have one or more spaces between operators and operands. Normal brackets (‘(‘,’)’), co...]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<p>Write a JS function that splits a passed in JS code into separate parts.</p>
<p>The passed in code will always have one or more spaces between operators and operands. Normal brackets (‘(‘,’)’), commas (,), semicolons (;) and the member access operator (‘.’(dot), as in “console.log”) should also be used for splitting.<br />String literals will always be initialized with double quotes (") and will contain only letters. Make sure there are no empty entries in the output.</p>
<p>The input comes as a single string argument - the JS code that has to be split.<br /><br /><strong>Examples:</strong><br /><br /><strong><span>Input:</span></strong><br />'let sum = 4 * 4,b = "wow";'<br /><br /><strong><span>Output:</span></strong><br />let<br />sum<br />=<br />4<br />*<br />4<br />let<br />b<br />=<br />"wow"</p>
<hr />
<p><strong><span>Input:</span></strong><br />'let sum = 1 + 2;if(sum &gt; 2){\tconsole.log(sum);}'<br /><br /><strong><span>Output:</span></strong><br />let<br />sum<br />=<br />1<br />+<br />2<br />if<br />sum<br />&gt;<br />2<br />{<br />console<br />log<br />sum<br />}</p>
<hr />
<p>The output should be printed on the console, with each elements obtained from the split is printed on a new line.</p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>sam</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/expression-split-javascript-task/</guid>
                    </item>
				                    <item>
                        <title>Conto del ristorante - compito JavaScript</title>
                        <link>https://tutorials7.com/it/qa/javascript/restaurant-bill-javascript-task/</link>
                        <pubdate>Thu, 07 Nov 2024 12:53:24 +0000</pubdate>
                        <description><![CDATA[You are tasked to write a javascript function that receives an array of purchases and their prices and prints all your purchases and their total sum.The input comes as an array of string ele...]]></description>
                        <content:encoded><![CDATA[<div class="entry-content">
<p>You are tasked to write a javascript function that receives an array of purchases and their prices and prints all your purchases and their total sum.<br /><br />The input comes as an array of string elements – the elements on even indexes (0, 2, 4…) are the product names, while the elements on odd indexes (1, 3, 5…) are the corresponding prices.<br /><br /><strong>Examples:</strong><br /><br /><strong><span>Input:</span></strong><br /><br /><br /><strong><span>Output:</span></strong><br />You purchased Beer Zagorka, Tripe soup, Lasagna for a total sum of 16.14</p>
<hr />
<p><strong><span>Input:</span></strong><br /><br /><br /><strong>Output:</strong><br />You purchased Cola, Pancakes for a total sum of 4.23<br /><br />The output should be printed on the console - a single sentence containing all products and their total sum in the format “You purchased {all products separated by comma + space} for a total sum of {total sum of products}”.</p>
</div>]]></content:encoded>
						                            <category domain="https://tutorials7.com/it/qa/javascript/">JavaScript</category>                        <dc:creator>matthew44</dc:creator>
                        <guid ispermalink="true">https://tutorials7.com/it/qa/javascript/restaurant-bill-javascript-task/</guid>
                    </item>
							        </channel>
        </rss>