This file contains hidden or 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
[ | |
{ | |
"id":"gig-01", | |
"title":"Macaron", | |
"artist":"Baher Khairy", | |
"desc":"Sweet meringue-based rhythms with smooth and sweet injections of soul", | |
"img":"https://res.cloudinary.com/schae/image/upload/f_auto,q_auto/v1519552695/giggin/baher-khairy-97645.jpg", | |
"price":1000, | |
"sold-out": false | |
}, |
This file contains hidden or 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
;; Functions | |
(defn sum [x y] (+ x y)) | |
;; Shorthand Functions | |
(def sum #(+ %1 %2)) | |
;; Function Invocation | |
(sum 3 4) |
This file contains hidden or 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
// Functions | |
function sum(x, y) { | |
return x + y; | |
} | |
// Shorthand Functions | |
const sum = (x, y) => x + y; | |
// Function Invocation | |
sum(3, 4) |