Quick Playlists:
- JavaScript Fundamentals
- Data strucutres and algorithms
- Clean code
- Design Patterns
- Codesignal Interview Practice
Learn these books:
Quick Playlists:
Learn these books:
const browserify = require('browserify'); | |
const b = browserify(); | |
b.require(`${__dirname}/index.js`, {expose: 'bundle'}).bundle((err, src) => { | |
console.log(src.toString()); | |
}); |
// add/modify the boards.js | |
// preserve old method of testing but also add a new method of checking current User | |
setMemberPermission(memberId, isAdmin, isNoComments, isCommentOnly, currentUserId = Meteor.userId()) { | |
const memberIndex = this.memberIndex(memberId); | |
// do not allow change permission of self | |
if (memberId === currentUserId) { | |
isAdmin = this.members[memberIndex].isAdmin; | |
} | |
const change = { |
const { expect } = require("chai"); | |
const PQueue = require("p-queue"); | |
const queue = new PQueue({ concurrency: 1 }); | |
const numbers = [1, 2, 3]; | |
describe("tests various numbers", async function() { | |
let realNumber = 0; | |
numbers.map(number => { | |
it(`number is equal to ${number}`, async function() { | |
await queue.add(async () => await ++realNumber); |