const function return javascript code example Example: function return const int getValue() const { return value; }