I am trying to make a sum with decimals, I am starting to use javascript to make operations etc.
this is the script I use:
<script>
function sumar (valor) {
var total = 0;
valor = parseInt(valor); // Convertir el va...
I'm trying to pass a date to the ISODate format using the javascript toISOString () method, the problem is that it's a bad time for me.
var fecha_hora = '2017-05-15 15:39:22'
var f = new Date(fecha_hora);
var fechaISO = f.toISOString()...
How can I avoid saving a user's credentials inside the browser, for example, Chrome? I am performing two authentication queries within a single account that has already been authenticated. It's bad practice, but I need users and secondary passwo...
I have the following code: (also available in Codepen )
const agregar=document.querySelector('#agregar')
const inputAgregar=document.querySelector('#inputAgregar')
const listaUl=document.querySelector('#listaUl')
var datosArray=[...
Hello, what I want to do is that by clicking on the input the calendar that shows start in the year 1900 as the default but do not show the date in the input before selecting a date, try with value but that shows the date without having sele...
Good afternoon, I have a my website in ASP .NET MVC. I am currently implementing the Layout (Located in Yanbal (the VS solution) - > Views - > Shared - > _Layout.css . I have made a model in wordpress, I got the html code from it...
Because the result expected (5 * 4 = 20), does not result in this, but in undefined ?
function anyMe(callback) {
callback(5,4);
}
var expresion = anyMe(function(a,b){
return a * b;
});...
I have a page to contact me and I need all fields filled out. I have to use alert to warn that you have not entered any field and what is that field. I tried to use isNaN but it did not work for me.
Also try this but it did not...
Environment: sequelize 3.27, node.js 6.1, express
sequelize
Object.hasMany(OtherObject)
I have the following piece of code:
//...
await db.Object.create(objectData).then(async (object:any) => {
//..
object.update({sharedL...