Search the Community
Showing results for tags 'mistake'.
Hi I use w3schools a lot, but I found a mistake. I was using this webpage: https://www.w3schools.com/jsref/jsref_obj_date.asp and I noticed that there was a mistake in the discription of the getDay() method (see screenshot). But when I uses it it's a value from 1 to 7. I post this, because I want to help others and the w3schools platform.
Hello dear, i found one of your websites about the switch case statements in C++. https://www.w3schools.com/cpp/cpp_switch.asp It says: "If there is a match, the associated block of code is executed." This is not wrong, BUT it is not mentioned later (break statements), that the code ist executed *from the line* of the match (and not only the match codeblock) to the end of the switch block, if there is no break statement. "break" does not only save runtime, if you don't use it, you will get some hard to find unexpected behavior in your programs. Ex