🔹 Basic JavaScript Questions What is JavaScript? JavaScript is a programming language used to make websites interactive (like buttons, forms, animations). How is JavaScript different from Java? Java is a full programming language (used for apps, backend, etc.). JavaScript mainly runs in browsers for web pages. What are the data types in JavaScript? Common ones: String , Number , Boolean , Object , Array , null , undefined , Symbol , BigInt . Difference between var , let , and const ? var : old way, not block-scoped. let : new, block-scoped. const : same as let but cannot be changed. What is hoisting? JavaScript moves variable and function declarations to the top before running code. Difference between == and === ? == compares value only (allows type conversion). === compares value and type (strict). What are truthy and falsy values? Truthy: values ...