Skip to content

Instantly share code, notes, and snippets.

View omesser's full-sized avatar
👾

Oded Messer omesser

👾
  • (╯°□°)╯︵ ┻━┻
View GitHub Profile
@omesser
omesser / prettify.js
Created November 18, 2022 15:16
prettify.js
/*
Make the function more readable and maintainable
Please do not comment on this public gist (comments will be removed)
Please do not fork on this public gist - if you got here from
an application form, please reply privately on the form.
This is used as part of a hiring pipeline, I ask you to respect that.
*/
function doStuff(text) {
const lowerCased = text.toLocaleLowerCase();
@omesser
omesser / sum.js
Created May 3, 2022 09:04
javascript - curry sum
/*
Create a function 'sum' that would make the following function call work as expected and return the sum of two numbers.
*/
console.log(sum(2)(5));
@omesser
omesser / this.js
Created May 3, 2022 09:01
javascript - this
/*
What will be the output of the following code?
*/
function foo() {
console.log(this);
}
const obj = {
foo: function () {