Комментарии:
Me: Watches a video of someone else programming instead of working on my own project that I keep putting off
Ответитьhello, i want to ask something,
could the scren not displaying 0 when we click the operator? like instead, the operator is beside the number we previously input?
for example when i input 5 + 5, the screen is showing 5 + 5, not 5, then 0 after i click +
ok
ОтветитьDo a video where you just sneeze and cough really loud half way through and pretend to get mad that you messed up the quiet and relaxing audio and progressively get more mad that your anger has caused you to keep breaking the silence, mumbling curse words to yourself
ОтветитьThats pyton?
ОтветитьVídeo sensacional, estou começando agora e entendi a parte do HTML e CSS, passou pro JS não entendi mais nada, espero chegar nesse nivel o quanto antes!!.
Ответитьчел за 34 минуты сделал калькулятор для нинтендо свич
ОтветитьI do not work clicking on the numbers do not appear in the line and even with Addiction and other things.
And I copied the script exactly
Now i can learn coding with just asmr
Ответитьحاجی ایرانی ایی؟
اون گ چی بود اون وسط؟ 😂
Nice, over 30 mins, it took me a couple of hours to code this before.
ОтветитьHow do I get the arrow button when doing the js?
ОтветитьI TAKE WHAT I SAID BACK!!! THIS IS AMAZING!!!!!!!! :)
ОтветитьThat is cool, I'm pretty sure i would be able to do this my self, but anyways good job!
ОтветитьThanks a lot bro
ОтветитьWhere can I find the project repository?
ОтветитьNew found channel
Ответитьlink cursour ?
ОтветитьCan you disponibilize the codes please? Im a big fan of yours.
Ответитьwhat is your keyboard?
Ответитьi read asm/nasm in first time
Ответитьthe green cycle 💀
Ответитьme at the html and css part: that's easy.
me at the js part: ok, I need to study. see yah.
Do you need to learn all the commands?
I am currently learning html but i dont know how i will remember all of the commands!😢
The keyboard sounds like it's in turkey (also your breathing)
ОтветитьWhats your keyboard?
Ответитьcan i get the code of all that ?
Ответитьhow can I use my numpad keys for input?
ОтветитьNew subscriber here
Ответить”What are you doing hun?”
”I’m watching a video of a random guy coding a calculator”
How to write calculator like this on python
ОтветитьHave you uploaded the code to your GitHub? I would love to take a look at it!
Ответитьhey I am newbie and i am tring to code but the thing is my html is working fine and the results are being shown is the live preview as well but my css is not showing up when i have written my code
ОтветитьLooks like I signed up for the right place.thanks ❤
Ответитьwhy are you not writing tests?
Ответитьthanks you is a realy good programer.
ОтветитьWhat the program you use for mouse move ?
ОтветитьHow are you replying to every comment?
Ответитьbro igot some issu so plz tell me where i do worng
let runningTotal = 0;
let buffer = "0";
let previousOperator;
const input = document.querySelector(".input");
const buttons = document.querySelectorAll(".calc-button");
buttons.forEach(button => {
button.addEventListener("click", () => {
buttonClick(button.innerText);
});
});
function buttonClick(value) {
if (isNaN(value)) {
handleSymbol(value);
} else {
handleNumber(value);
}
input.innerText = buffer; // Update the display
}
function handleSymbol(symbol) {
switch (symbol) {
case "C":
buffer = "0";
runningTotal = 0;
break;
case "=":
if (previousOperator === null) {
return;
}
flushOperation(parseInt(buffer));
previousOperator = null;
buffer = runningTotal.toString(); // Display the result
runningTotal = 0;
break;
case "←":
if (buffer.length === 1) {
buffer = "0";
} else {
buffer = buffer.slice(0, -1); // Corrected buffer manipulation
}
break;
case "+":
case "-":
case "×":
case "÷":
handleMath(symbol);
break;
}
}
function handleMath(symbol) {
if (buffer === "0") {
return;
}
const intBuffer = parseInt(buffer);
if (runningTotal === 0) {
runningTotal = intBuffer;
} else {
flushOperation(intBuffer);
}
previousOperator = symbol;
buffer = "0";
}
function flushOperation(intBuffer) {
switch (previousOperator) {
case "+":
runningTotal += intBuffer;
break;
case "-":
runningTotal -= intBuffer;
break;
case "×":
runningTotal *= intBuffer;
break;
case "÷":
if (intBuffer !== 0) {
// Prevent division by zero
runningTotal /= intBuffer;
} else {
// Handle division by zero error
alert("Cannot divide by zero!");
resetCalculator();
}
break;
}
}
function resetCalculator() {
buffer = "0";
runningTotal = 0;
previousOperator = null;
input.innerText = buffer;
}
What kind of keyboard/keycaps are you using?
Ответитьhello, i would like to know how mark minus symbol, like you do, i don´t know much about programming and that´s why i don´t know keyboard commands , greetings from Colombia
Ответитьwho else is instead of listening to the asmr here to learn
ОтветитьYou are a junior,not middle,your code is too bad
Ответитьthis video is amazing, ur giving me hopes on coding !!!
ОтветитьDont look down…
Html isnt a programming language
Great
Ответитьthis channel is Unique he is replying to every comments.
You earn a subs for that😮
One of my dreams or goals, is to write code without having to googling how to do something
Ответить