TGViewer
Web Development - HTML, CSS & JavaScript Web Development - HTML, CSS & JavaScript @javascript_courses ยท 55.7K subscribers
Post #2707 2.95K
๐Ÿ”ฐ JavaScript Quick Tips

Today weโ€™ll look at #javascript simple tips and tricks. 

Hereโ€™s a breakdown: 
1. Filter unique values 
2. Convert to boolean 
3. Convert to string 
4. Convert to int 
5. Convert float to int 
6. Remove last digits 
7. Truncate an array 
8. Last item in an array 

If these tips were useful save the post for later! Follow for 
more tips and tricks like these

#webdevelopment
  • โค 6
  • ๐Ÿ‘ 1
More from @javascript_courses
  1. Oct 12, 2026doesn't work because "a" is block-scoped. โญ 1๏ธโƒฃ5๏ธโƒฃ What Is an Execution Context? When Javaโ€ฆ
  2. Oct 12, 2026When "inner()" looks for: name it finds it in its own scope. For: city JavaScript looks inโ€ฆ
  3. Oct 12, 2026๐Ÿ’ป JavaScript Roadmap 2026 โ€” Part 9 ๐ŸŸก Scope, Hoisting & Execution Context Now we're movinโ€ฆ
  4. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  5. Oct 9, 2026๐Ÿ‡ฎ๐Ÿ‡ณ ๐—š๐—ข๐—ฉ๐—˜๐—ฅ๐—ก๐— ๐—˜๐—ก๐—ง ๐—ข๐—™ ๐—œ๐—ก๐——๐—œ๐—” โ€” ๐—”๐—œ๐—–๐—ง๐—˜ ๐—œ๐—ก๐—ง๐—˜๐—ฅ๐—ก๐—ฆ๐—›๐—œ๐—ฃ๐—ฆ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ ๐Ÿš€โ€ฆ
  6. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’