avascript is a very complicated language, I may have learned fake JavaScript, haha, what else do you recommend, please add the invitation code.
Before sharing, I want to introduce my own front-end group: 675498134, I share dry goods from time to time, including a copy of the latest front-end materials and zero-based introductory tutorials that I have organized myself in 2017, looking forward to beginners and advanced.
1. Write a rating component on a single line
"★★★★★☆☆☆☆☆".slice(5 - rate, 10 - rate); Define a variable rate with a value from 1 to 5, then execute the above code, see the picture
I just found out that the plugins are all weak.
2. How to pretend to use code to scold others SB
(!(~+[])+{})[--[~+""][+[]]*[~+[]] + ~~!+[]]+({}+[])[[~!+[]]*~+[]]
Find out why please move: A line of JavaScript code that can be powerful
3. How to elegantly prove yourself NB with code
This is crazy
console.log(([][[]]+[])[+!![]]+([]+{})[!+[]+!![]])
4. Correct posture for JavaScript error handling
, uncle serve you
try {something} catch (e) { window.location.href ="//stackoverflow.com/search?q=[js]+" +e.message;}