Provides an overview of the guidelines for JavaScript coding for SAPUI5.
For JavaScript, the following general guidelines apply:
-
Do not use global JavaScript variables. For more information, see Modules and Dependencies.
-
Do not access internal (private) members of other objects.
-
Do not use the browser-native
console
object to produce a console output. Use thesap/base/log
module and its respective methods to create log entries. -
Do not override SAPUI5 code (JavaScript, CSS, etc.). Such modifications may break parts of other SAPUI5 projects.