Posts by Misaell • 111 points
4 posts
-
0
votes3
answers102
viewsQ: Javascript performs the function without the button being clicked
Goal Replace the content of the widget <P> by a new text by clicking a button. Problem Whenever the page loads, the javascript executes the function and changes the text without the button…
-
0
votes2
answers60
viewsQ: What does it mean when the console returns the function itself?
Edited. The console is returning the function itself as a response, not the function result. The goal is for the function to say whether or not one value is greater than the other. let…
-
1
votes2
answers528
viewsQ: What does the error "Cannot implicitly convert "void" to "int" refer to?
My goal is to calculate percentage, while trying to run the code below I get the error message: "Cannot convert type implicitly void in int. As I correct? int var1 = Console.WriteLine("Insira…
-
8
votes1
answer460
viewsQ: What is " : " (two points) in C#?
I still don’t understand what the two points represent and why this code isn’t running. int soma = 0; int[] lista = { 3, 7, -6, 10, -1, 0, -1, 4}; for (int i : lista) { if (i > 0) { soma = soma +…