12 common JavaScript questions answered

JavaScript is one of the most flexible web design tools around, as our top examples of JavaScript article shows. But even with the biggest of tools, there's always more to learn and discover. 

Here are 12 questions (and answers) about JavaScript that have left many developers stumped – even experienced JavaScript coders (also see our selection of CSS and JavaScript tutorials). If you'd rather keep your site build simple, try a website builder.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

Matt Crouch

Matt Crouch is a front end developer who uses his knowledge of React, GraphQL and Styled Components to build online platforms for award-winning startups across the UK. He has written a range of articles and tutorials for net and Web Designer magazines covering the latest and greatest web development tools and technologies. 

Read more
Promo for Future Cards with the tagline "Leave the busywork to the machines"
What makes good designers great? Stand out from the crowd with these 9 expert tips
Studio Moross graphics
12 skills to help designers get ahead in 2025, advice from the pros
woman showing a younger woman something on a drawing tablet
What do you wish you'd known as a beginner graphic designer? - We asked the experts
Rikhard Hormia creative resume
How to make a creative résumé: top tips and design examples
404 pages: LEGO
The best 404 pages for clever web design inspiration
A desktop with a colourful portfolio on screen
How to create an online portfolio: Steps to curating your own corner of the web
Latest in Javascript
Speed up JavaScript
21 steps to super speedy JavaScript
Angular 8
What's inside Angular 8?
brain.js neural network
Use brain.js to build a neural network
Explore data visualisation with p5.js
Explore data visualisation with p5.js
WebGL 3D
Create a WebGL 3D landing page
JavaScript code splitting
All you need to know about JavaScript code splitting
Latest in Features
iPhone 12 box
The beigeification of design: Why are brands so afraid of colour?
Puma
"There is a fundamental shift happening in society": Puma's bold new campaign flips script on sports advertising
Wax Heads; a digital illustration depicts a young woman holding a record, surrounded by a variety of displayed items in a store
How Wax Heads hand-drawn 'cosy-punk' aesthetic was made using Godot
Tesla logo
The history of the Tesla logo: from car badge to global tech brand
Nintendo and AI art; a vibrant illustration showcases a large group of popular video game characters, seemingly from the Mario franchise
Mario and Zelda creator rejects AI to "find what makes Nintendo special" – what we can all learn from Shigeru Miyamoto
Joshua Blum and Han West
'Communication is paramount in any creative partnership’: a day in the life Joshua Blum and Han West