Q&A Discussions
style.display=""?
1 Vote
2 AnswersWhat is wrong with this code?
-
-
<!Doctype html>
<head>
</head>
<body>
<form>
<input type="text" id="input">
</form>
<button type="button" id="button">Click here</button>
<script>
var input=document.getElementById("input");
var button=document.getElementById("button");
function display() {
if (button.clicked == true) {
console.log("input");
}
};
display();
</script>
</body>
0 Votes
7 AnswersFunctions help please
0 Votes
1 AnswerBase conversion
1 Vote
1 AnswerHelp with my Code
4 Votes
1 AnswerI need to design a recursive function called replicate recur which will receive two arguments: times which is the number of times to repeat and data which is the number or string to be repeated.
The function should return an array containing repetitions of the data argument.
For instance, replicate_recur (3, 5) should return [5,5,5].
If the times argument is negative or zero, return an empty array. If the argument is invalid, raise ValueError.
0 Votes
4 AnswersHot today
When your heart are gone
1 Votes
I am a beginner here
3 Votes
Where do I find saved code?
2 Votes
Coding ?
1 Votes
Added games in my codes
0 Votes
Pls I need help
0 Votes