и посмотреть медиа
JavaScript test - knowledge check
и посмотреть медиа
Channel with tests to check JavaScript knowledge. Practical tasks for self-assessment of level.
Platform for testing JavaScript skills. Regularly publishes tasks of varying difficulty, helping identify knowledge gaps and prepare for real development tasks.
❓Что будет на выходе? const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args))); const pipe = (...fns) => fns.reduce((f, g) => (...args) => g(f(...args))); const double = x => x * 2; const addTen = x => x + 10; const square = x => x * x; const negate = x => -x; const transform1 = compose(negate, square, addTen, double); const transform2 = pipe(double, addTen, square, negate); const val = 3; console.log(transform1(val), transform2(val)); Ответ: -256 -256 JavaScript test | #JavaScript & Max
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!