{"success":true,"message":"Connection to JavaScript QnA route successful.","qnadata":[{"id":1,"question":"What is the difference between var, let, and const in JavaScript?","answer":"var is function-scoped and can be redeclared. let is block-scoped and can be reassigned but not redeclared in the same scope. const is block-scoped and cannot be reassigned after initialization.","difficulty":"easy"},{"id":2,"question":"What is the difference between == and === in JavaScript?","answer":"The == operator compares values after performing type coercion, while the === operator compares both value and type without type conversion. Using === is generally recommended.","difficulty":"easy"},{"id":3,"question":"What are the primitive data types in JavaScript?","answer":"JavaScript has seven primitive data types: String, Number, Boolean, Undefined, Null, Symbol, and BigInt. Everything else, including arrays and functions, is an object.","difficulty":"easy"},{"id":4,"question":"What is hoisting in JavaScript?","answer":"Hoisting is JavaScript's behavior of moving declarations to the top of their scope before execution. Function declarations are fully hoisted, while variables declared with var are hoisted but initialized as undefined. let and const are hoisted but remain inaccessible until their declaration due to the Temporal Dead Zone.","difficulty":"easy"}]}