This file contains 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
// "Write a program that prints the numbers from 1 to 100. | |
// But for multiples of three print “Fizz” instead of the number | |
// and for the multiples of five print “Buzz”. | |
// For numbers which are multiples of both three and five print “FizzBuzz”." | |
// 1 - simplest | |
function one() { | |
for (let i = 1; i <= 100; i++) { | |
if (i % 3 === 0 && i % 5 === 0) { // this is the same as 'i % 15 === 0' | |
console.log("FizzBuzz"); |
- upon release, yarn had many advantages compared to npm
- however, the rise of yarn pushed npm to make improvements and the competion has became increasingly tighten
- though, yarn is still (even after npm 6.0) somewhat faster
- the popularity gap is slowly closing but npm still is the most popular
- helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs
- consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles
- Usually is outdated.
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
NewerOlder