JavaScript Essentials for SAP ABAP Developers A Guide to Mobile and Desktop Application Development
Easily master JavaScript (JS) with this quick guide and develop mobile and desktop applications for SAP Fiori. The book equips ABAP/SAP developers with the essential topics to get started with JS. The focus of JavaScript Essentials for SAP ABAP Developers is on the parts of the JS language that are...
Gespeichert in:
| 1. Verfasser: | |
|---|---|
| Format: | E-Book |
| Sprache: | Englisch |
| Veröffentlicht: |
Berkeley, CA
Apress L. P
2017
Apress |
| Ausgabe: | 1 |
| Schlagworte: | |
| ISBN: | 9781484222195, 1484222199, 9781484222201, 1484222202 |
| Online-Zugang: | Volltext |
| Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Inhaltsangabe:
- while Loop -- do...while Loop -- for Loop -- for...in Loop -- Label Statement -- Summary -- Chapter 5: Regular Expressions and String Methods -- Regular Expressions: An Overview -- String Methods -- search Method -- replace Method -- match Method -- split Method -- Regular Expression Object -- Regular Expression Object Properties -- constructor Property -- global Property -- ignoreCase Property -- lastIndex Property -- multiline Property -- source Property -- Regular Expression Object Methods -- exec Method -- test Method -- toString Method -- Summary -- Chapter 6: Functions -- Functions: An Overview -- Declaring Functions -- Using a Function Expression -- Self-Invoking Functions -- Named Function Expression -- Anonymous Function -- Using a Function Declaration -- Summary Comparison of the Function Declaration and Function Expression -- Function Parameters and Arguments -- Missing Parameters and the undefined Value -- arguments Array -- Simulating Optional Parameter Passing -- return Statement -- Function Call -- Parameter Pass by Value or Pass by Reference? -- Function Naming -- Summary -- Chapter 7: Doing More with Functions -- Hoisting in the Context of Functions -- First-Class Citizens -- Nested Functions -- Lexical Scoping -- Closures -- Recursive Functions -- Summary -- Chapter 8: Object-Oriented Programming in JavaScript -- Object-Oriented Programming in General -- Object Instances and Constructors -- Approach 1: Using an Object Literal -- Approach 2: Using a Constructor Function -- Approach 3: Using the Object() Constructor -- Approach 4: Using the create() Method -- JavaScript: A Prototype-Based Language -- Prototypal Inheritance -- Summary -- Chapter 9: Objects -- Array -- Properties of Array Object -- Property constructor -- Property length -- Array Methods -- Method concat -- Method pop -- Boolean -- Boolean Properties -- Boolean Methods
- Method valueOf -- String -- String Properties -- Property length -- String Methods -- Method charAt -- Method repeat -- Method slice -- Date -- Date Properties -- Property constructor -- Date Methods -- Using Property prototype with Method getDay() -- Method setMonth -- Summary -- Chapter 10: JavaScript Object Notation (JSON) -- JSON: An Overview -- JSON Data Types -- JSON Objects -- JSON Arrays -- JSON parse Method -- JSON stringify Method -- Summary -- Chapter 11: Miscellaneous Topics -- Strict Mode -- Debugging JavaScript -- Code Formatting Tips -- Use a Semicolon at the End of Each Statement -- Usage of Blanks -- Usage of Comparison Operators -- Function Curly Brackets -- Correctly Formatted Code Example -- Naming Convention for Variables -- Runtime Error and Exception Handling -- Best Practices in JavaScript -- Avoid Use of Global Variables -- Never Declare Objects for Numbers, Strings, or Booleans -- Use of default Clause in switch Statements -- Assigning Default Values in Parameter -- Use === Comparison -- Avoid Usage of Closures -- Summary -- Index
- Intro -- Contents at a Glance -- Contents -- About the Author -- About the Technical Reviewer -- Acknowledgments -- Introduction -- Chapter 1: Introduction to JavaScript -- Brief JavaScript Background -- Inside a JavaScript Program -- Creating a Simple JS Program -- A Quick Look at HTML -- Putting JavaScript in HTML Code -- Writing JS Code Within the < -- HEAD> -- and < -- /HEAD> -- Tags -- Writing JS Code Within the < -- BODY> -- and < -- /BODY> -- Tags -- Creating JS Code in a Separate File -- Variable Declaration in JavaScript -- Using Eclipse -- Summary -- Chapter 2: A Step Ahead in JavaScript -- Window Object -- Data Types in JavaScript -- String -- Number -- Undefined -- Null -- Object -- Objects Within Objects -- Boolean -- The typeof Operator -- Method console.log -- Taking Input from the User -- Commonly Used Keywords in JavaScript -- Summary -- Chapter 3: Operators in JavaScript -- Arithmetic Operators -- Addition Operator -- Subtraction Operator -- Multiplication Operator -- Division Operator -- Remainder Operator -- Exponentiation Operator -- Increment Operator -- Decrement Operator -- Unary Negation Operator -- Comparison Operators -- Greater Than Operator -- Less Than Operator -- Greater Than or Equal To Operator -- Less Than or Equal To Operator -- Equality and Inequality Operators -- Equality Operator -- Inequality Operator -- Strict Equality (Identity) Operator -- Non-identity/Strict Inequality Operator -- Logical Operators -- Bitwise Operators -- Bitwise AND -- Bitwise OR -- Bitwise XOR -- Bitwise NOT -- Bitwise Left Shift -- Bitwise Unsigned Right Shift -- Bitwise Signed Right Shift -- Coding Example -- Assignment Operators -- String Operator -- Summary -- Chapter 4: Control Structures in JavaScript -- Block Statement -- Conditional Statements -- if...else Statement -- switch Statement -- Loops in JavaScript

