Posts by ncesar • 123 points
2 posts
-
0
votes1
answer35
viewsA: How to pass what runs in JS to input field on the same page?
Arrow the innerText or innerHTML of the result you have had to wherever you want it to appear. Ex: const resultado = document.querySelector('.resultado-achado').innerHTML; In the field, text or…
-
2
votes1
answer315
viewsQ: How to count the number of comparisons of an algorithm (insertionSort)?
I have a college job where I should create some vectors with random numbers and then sort in some methods(Insertion,Bubble,merge,etc). After sorting, I need to count the number of comparisons that…