r/javascript • • Mar 18 '19

What's your favorite, most useful javascript one-liner?

385 Upvotes

422 comments sorted by

View all comments

18

u/ReaderSeventy2 Mar 18 '19

console.log(foo);

35

u/senocular Mar 18 '19

Haven't you heard? You don't need JavaScript for that anymore ;)

https://www.youtube.com/watch?v=uddZX9ZK6wY&t=31

2

u/[deleted] Mar 19 '19

Have you used FireFox Developer Edition ?? They have this functionality. Also some cool other fun things ..Take the tutorial.