In C++, we can declare a value as immutable by using the const
keyword, which is similar to const
in JavaScript.
bool isVowel(const char p_char) { ... }
Unlike JavaScript, we can label incoming arguments with const
, indicating that they won't undergo any mutation throughout the function.