Skip to content

Instantly share code, notes, and snippets.

Var vs. Let

This Gist was automatically created by Carbide, a free online programming environment.

[You can view a live, interactive version of this Gist here](

Arrow functions

@kopecmi8
kopecmi8 / cell0.js
Last active May 6, 2024 10:46
template literals
var person = {
name: 'Michal',
surname: 'Kopecký',
}
var greetings = 'Hi, ' + person.name + ' ' + person.surname + '!';

Classes

@kopecmi8
kopecmi8 / cell0.js
Last active May 6, 2024 10:45
extended parameter handlling
function createProduct(price, productNumber, name, description) {
return {
price: price,
code: productNumber,
name: name,
desc: description
}
}
function discountCreateProduct(price, ...params) { ///tady se jedná o rest parameter
class="[a-zA-Z0-9:;\.\s\(\)\-\,]*"

Modules