JavaScript (3) 썸네일형 리스트형 JS Finding out Prime Number We call a number that has only 1 and itself as divisor as Prime number. I was thinking how to get it through code, it was hard but I figured that those numbers divide by any numbers between 1 and itself doesn't divide so here's a code. https://github.com/SoftwareDevJake/PrimeNumber GitHub - SoftwareDevJake/PrimeNumber Contribute to SoftwareDevJake/PrimeNumber development by creating an account o.. JavaScript Tip (2) - Using tip (1) for undo and redo function in array https://github.com/SoftwareDevJake/JS_UndoRedo/blob/master/UndoRedo.html GitHub - SoftwareDevJake/JS_UndoRedo Contribute to SoftwareDevJake/JS_UndoRedo development by creating an account on GitHub. github.com This is about undo and redo function in an array if you are dealing with changing array's value. It'd be possible to use this in other case right? For example of this code, I added four fun.. JavaScript Tip (1) - saving array into another array When you want to save an array into another array Arrays in another array will become same as above. But there's a real simple way to fix it with array.flat([]) Let's give it a try. if you exchange push array as above You can see the correct form! 이전 1 다음