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
AI generated images of a male creative director and a female parent
AI's gender bias is even worse than reality
Lady Phyll
"She embodies strength, resilience, and pride": Ron Timehin on photographing LGBTQ+ icon Lady Phyll
Atomfall hands-on; various scenes from a video game set in a 1950s England after the apocalypse
"We wanted it to feel big" – playing Atomfall from an art director’s perspective
Best video game architecture; a woman stands in front of a city scene, in the distance is a mix of gothic and modernist buildings
The best video games for architecture and design fans
Among The Trolls by Avantgarden Games;
How Unreal Engine 5 is harnessed to blend photoreal environments with fantasy folklore in Among The Trolls
Cartoons of the 1960s; A vibrant illustration of the Yellow Submarine, a psychedelically patterned background surrounds the iconic vessel.
Cartoons of the 1960s – the best animated movies feature the work of Chuck Jones, who ensured characters were "not realistic, but believable"