python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Store addEventListener in variable in JS
I am making a rock, paper, scissors game and I am trying to store some text in a variable when a click event takes place using addEventListener (when a user clicks a button to select either 'rock', 'p...
Eric Petela
Votes: 0
Answers: 0
What can I do to make my code more efficient and not use global variables
So today I built a very simple number guessing game and the below code is what I wrote. I understand that it's incredibly inefficient and I use global too much, which is generally known as a bad pract...
Ahmedh Aaqil Rifky
Votes: 0
Answers: 2
How to manipulate variables in a method and send it back
I've seen a few questions about this but I haven't been able to find the answer yet. So I'm basically been trying to have everything based inside methods and only have the main full of calls to the me...
Douglas Ritter
Votes: 0
Answers: 1
How to create a variable that contains an Operator in Java?
I'm trying to write a program in 30 lines or less for my class (self imposed challenge).
The program asks the user a simple addition, division, multiplication, or subtraction question and the player a...
SirDuke
Votes: 0
Answers: 3