New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Problem with = and ==
1 Vote
9 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 AnswersIn the continue Loop -
i = 0
while True:
i = i +1
if i == 2:
print("Skipping 2")
continue
if i == 5:
print("Breaking")
break
print(i)
print("Finished")
It shows the output being
"1
Skipping 2
3
4
Breaking
Finished"
Why are the last three lines not
"Breaking
5
Finished"
Where it shows print(i) after break?
1 Vote
3 Answerswhat is the use of ==
1 Vote
4 AnswersWhat is == mean?
0 Votes
3 Answerswhat does == mean ???
4 Votes
15 Answerswhat does == stand for??
0 Votes
9 AnswersHot today
Help me plss
0 Votes
Hello
0 Votes
Android studio emulator
0 Votes
Kotlin programing
0 Votes
[SOLVED] About split() Function
1 Votes
help me
0 Votes
Return function
0 Votes