+ 3

What is Difference between error and bug?

Error / Bug

12th Sep 2019, 3:59 AM
Darshan Raval
Darshan Raval - avatar
2 ответов
+ 3
An error occurs when something is causing your program not to work at all, for example not assigning a value to a constant: const age; I don't know about you, but the error message "Uncaught SyntaxError: Missing initializer in const declaration" is telling something. Bugs are more annoying; they sometimes do inproper things to the program, and are harder to catch because of that. Javascript is a perfect example: const age = Number(input_function()); Well, if your input function returns "no", you're probably rekt. We usually don't like NaN, and plus it spreads like the plague, and doing calculations with the age will also result in NaN. If you don't think about stupid people, who input strings when they are asked to input numbers, then you will, in fact have a bug.
12th Sep 2019, 4:12 AM
Airree
Airree - avatar
+ 4
Just a small fact The first bug found in a computer was a real but
12th Sep 2019, 5:16 AM
Qudusayo
Qudusayo - avatar