This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JAVASCRIPT IS DYNAMICALLY TYPED | |
var age = 30; | |
console.log("Age = " + age); // Display's age | |
console.log("Type of variable age = " + typeof(age)); // Type of variable | |
console.log("--- Dynamically typed ---") | |
age = "new born"; // Proof JavaScript is dynamically typed | |
console.log("Type of variable age = " + typeof(age)); // Type has changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
getAssociatedServicesFromOrder(orderForm) | |
.stream() | |
.map( | |
servie -> return service.withAdditionalFeatures(interestedServices.contains(ts.getSecondaryService())) | |
) | |
.collect(Collectors.toList() | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function names do not support hoisting. |
NewerOlder