How can I get the number of uppercase and lowercase vowels in a variable in JavaScript.
var person = new Object();
person = prompt("Introduce tus datos");
//Numero de vocales
var numVocales;
for (i = 0...
This code apparently checks if a variable is true, and if not, creates the variable:
(function(a){
a || (a = "Default value");
})();
Why does it only work when the defect is made with parentheses? , I mean:
(a = "Default value")
Also,...
I want to tell only one type of product, which is the best way to do it, Example I want you to print the number of "ORANGE" = 2 and not the whole array:
var fruits = ["Banana", "Orange", "Apple", "Mango","Orange"];
fruits.length;
console.log...
I have the following object, for example:
{
"name":"false",
"var_RadiacionGlobalInt":true,
"var_CO2InvVaisala":true,
"var_RadiacionExt":false,
"var_VVExt":false
}
I would need to go through that object and the elements that are true to add...
I'm seeing the promises and async await in JavaScript. The syntax to generate both if I understand it and I can create them. What I do not understand is because we use async await if the promises are already created to generate asynchronous task...
I would like to get this effect toggle bootstrap in a table, that is to say: get that effect of displacement up, but all I get is that it appears and disappears with a horrible effect.
I leave you a bit of code:
$(function ()...
Hello recently I am learning to use fetch I found on the internet an api which offers me a random user service now I have been trying to make a simple request where I only return a JSON that contains female users, and from a specific country lik...
Hello, I am trying to export certain HTML elements to word to generate a report and the user to download the document.
After doing some research and seeing the same question in The English forum I found with this answer:
just keep follow...
I have 2 dates, one start and one end, I try to avoid that the start is greater than the end, apart from that I can not do it, I get rare years, days that are not ... etc.
console.log("start ", m , d , y);...
A field input in a form:
<td align=right>Cod.Postal:</td><td align=left><input type="text" name="codigo" id="idcodigo" maxlength="5"></td>
It should be possible to write only numbers (0-9).
window....