Questions tagged as 'javascript'

1
answer

How to implement a Sidenav on my website?

Sorry for the inconvenience. The truth is that they would send me to Google when they read my question, but I have already searched and searched and I can not find a code to implement it on my site since doing something like this is out of my re...
asked by 26.02.2017 / 16:47
2
answers

How to order a multidimensional array with javascript?

I have this multidimensional array, and I'm trying to sort with the "name" index, I tried the sort () function but it does not work. I have also tried this but it does not work either, the array that I try to sort is called result. va...
asked by 20.12.2018 / 17:27
1
answer

What is this function in JavaScript? delete

I was seeing some javascript code and I came across a function that in one part does something I do not understand, I was searching the internet but it does not show me what I'm trying to find. function iniciarSesion(correo,password) { l...
asked by 25.12.2018 / 15:28
2
answers

Countdown in javascript [closed]

I need a timer (coutdown), waiting 10 seconds for the download, JavaScript. After 10 seconds hide that text. For example: 10 seconds left ... There are 9 seconds left ... And so on and show a button ... I do not want a text that says Wait...
asked by 20.03.2017 / 21:24
1
answer

The for cycle in javascript, can you alter variables?

I have a question, I found the following code to calculate the factorial number of a whole number, but I am doing my desktop run and I can not understand the code because it is assumed that in the process of the factorial it multiplies by all th...
asked by 06.04.2017 / 21:36
3
answers

Error adding sums with decimals in javascript

I'm trying to add N values with decimals with javascript, the problem is that it manages to add: example 53.113,20 + 12,50 = Unexpected number I have a function that converts my totals in currency format: Number.prototype.formatMoney...
asked by 08.04.2017 / 02:19
2
answers

Event similar to "onchange"

I have a problem with a smart search list that I need to send the form once the value is selected. However, it does not work until I click outside the field. The code is as follows: <input id="ComunaBuscador" name="city" class="form-cont...
asked by 09.10.2018 / 14:12
4
answers

Write JavaScript variable in the HTML body

Is it possible to write a variable stored in a function of a .js file in the body of the index.html? For example I want to put below the form of the calculator "The result of the subtraction is (and here call the variable" result "stored in t...
asked by 12.10.2018 / 16:04
2
answers

How do Trailing Commas work in JavaScript?

When using methods / functions in JavaScript, as in other programming languages we can pass parameters EXAMPLE function saludar(name){ console.log("Hola: "+name) } Here we send the function call saludar("SO en español") The res...
asked by 08.10.2018 / 04:26
3
answers

Change border-radious from Javascript

Good, as you can see if you execute the program, it is a text in which we can basically modify the color, text, etc. However, adding border radious and putting space between words does not work. It may be that the CSS reference in JS is wrong, s...
asked by 08.08.2017 / 20:29