mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
14 lines
212 B
JavaScript
14 lines
212 B
JavaScript
test("let scoping", () => {
|
|
let i = 1;
|
|
{
|
|
let i = 3;
|
|
expect(i).toBe(3);
|
|
}
|
|
expect(i).toBe(1);
|
|
|
|
{
|
|
const i = 2;
|
|
expect(i).toBe(2);
|
|
}
|
|
expect(i).toBe(1);
|
|
});
|