mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-10-31 03:03:52 +01:00 
			
		
		
		
	
							parent
							
								
									255490ede2
								
							
						
					
					
						commit
						c29c11c15b
					
				| @ -547,7 +547,7 @@ the specified value is supplied to the caller of the function: | |||||||
| 
 | 
 | ||||||
|     log(multiply(3, 5)) |     log(multiply(3, 5)) | ||||||
| 
 | 
 | ||||||
| In this example the `add` function we declared earlier is invoked with two arguments (3 and 5). | In this example the `multiply` function we declared earlier is invoked with two arguments (3 and 5). | ||||||
| The function computes the product of those arguments and makes the result available to the | The function computes the product of those arguments and makes the result available to the | ||||||
| function's caller. | function's caller. | ||||||
| 
 | 
 | ||||||
| @ -594,7 +594,7 @@ already exists there: | |||||||
| The local scope contains variables which only exist during the invocation of the current function, | The local scope contains variables which only exist during the invocation of the current function, | ||||||
| object or apply statement. Local variables can be declared using the `var` keyword: | object or apply statement. Local variables can be declared using the `var` keyword: | ||||||
| 
 | 
 | ||||||
|     function multiple(a, b) { |     function multiply(a, b) { | ||||||
| 	  var temp = a * b | 	  var temp = a * b | ||||||
| 	  return temp | 	  return temp | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user