Closed 6 years ago
Tag : terminology
not sure if this is the right forum for this but i can’t think of a better place t..
Closed 7 years ago
Suppose we have a publicly declared fu..
var file_extension = ‘txt’; if (file_extension === ‘txt’) alert(‘plain text’); else if (file_extension === ‘md’) alert(‘markdown’); var file_extension = ‘txt’; if (file_extension === ‘txt’) alert(‘plain text’); if (file_extension === ‘md’) alert(‘markdown’); The second example is wrong: there is no need to use the second if. I would say the use of the second if is ..