by Tofan Kirill
More information :
https://github.com/airbnb/javascript
// returned [ 0, 1, 4, 9, 16, 25, 36, 49, 64, 81 ]
function myFunc () {
const greeting = 'Hello World!';
const userName = 'Kirill';
let numbersArray = [];
let squaresArray = [];
for (let i = 0; i <= 9; i++) {
numbersArray.push(i);
}
squaresArray = numbersArray.map( (number) => Math.pow(number,2) );
return squaresArray;
}// returned [ 0, 1, 4, 9, 16, 25, 36, 49, 64, 81 ]
function mUfUnC666()
{
var g='HelloWorld!',uN="Kirill", n=[],s=[]
for(let i=0;i<=9;i++){n.push(i)} s=n.map( (i)=>Math.pow(i,2))
return s
}Well
Bad
There is a solution!
Linters!
What is it?
The most famous JS Linters
Thank You!