Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "To define the JavaScript function, the prototype
function is used within the module."
A block of code is set as follows:
PageModule.prototype.calculate = function(number1,number2,op){ if(op=="add"){ return number1+number2; } else if(op=="sub"){ return number1-number2; } else if(op=="mul"){ return number1*number2; } else if(op=="div"){ return number1/number2; } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
AppModule.prototype.functionName = function (param1,param2){ // write your logic here return "xyz"; }
Any command-line input or output is written as follows:
{ "id": "0062v00001R0hMgAAJ", "success": true, "errors": [] }
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select the French radio button and see that the table columns will be rendered in French."
Tips or Important Notes:
Appear like this.