Skip to content

Instantly share code, notes, and snippets.

const fs = require("fs");
const getSize = (filePath) => {
const f = fs.readFileSync(filePath);
const buf = f.buffer;
console.log(buf);
let i = 0;
while (true) {
const segment = readSegment(buf, i);
( // let statement
function() {
"use strict";
var a = "initial value";
var b = "initial value";
if(true) {
let a = "updated";
var b = "updated";
};
console.log("a = " + a);