I have a constant question about Length and loop for to measure an array or string.
Doubt 1:
When we use this code:
const numero ="teste";
const medir = numero.length;
console.log(medir)
It returns the value...
I need a function to run every 2 minutes.
I found this link a solution for my need:
Link
The Code below, calls an alert after 5 seconds when the mouse is stopped.
Note
I put 5 seconds to save time on the test.
<script type="te...
I needed help putting the smallest and largest method to be "heard" in the main method. The logic of the program is to show the user the highest and lowest value of a vector .
CODE:
import java.util.Scanner;
public class L6ex3 {
pu...
I would like to know if there is a way to avoid infinite loops of errors in Delphi XE2. These errors are usually critical errors of missing a file (like DLL) or without permission to access something.
I use exception handling, but in very spo...
I have the following code, which tries to click a button after 60 seconds, and if it has not loaded, try again after 60 seconds.
while(true) {
var timeout = setTimeout(function() {
try{
document.querySelector...
Good afternoon friends, I'm having trouble finding a logical solution to solving my problem in a loop (for)
Within a table, we have price information in the tag: <p class="preco-plano">R$44</p> and I created a blank tag:...
I am having difficulty dynamically displaying the contents of variables.
For example:
minha_var_1 = %{Um texto}
minha_var_2 = %{Outro texto}
minha_var_3 = %{Mais outro texto}
But, I tried to display both with:...
I'm learning javascript and now I'm starting to learn how to do looping, and I noticed that it's heavily used var i and when it's for / in var x why use those letters? I can use words in their place and it will work normally.
Ca...