No, you cannot redeclare let
and const
variables in the same scope. The let
and const
declarations are block-scoped, and attempting to redeclare them will result in a syntax error.
Example:
let x = 10;
let x = 20; // Error: Cannot redeclare block-scoped variable 'x'
Tags: intermediate, JavaScript, Variables