Hi,
I am trying the below code but cannot extract console.log(end.column)
, please guide me as to how to do it … I can do console.log(end)
and it gives 2 me but then i cannot extract start.column … Thanks
var node = {
type: "Identifier",
name: "foo",
loc: {
start: {
line: 1,
column: 4
},
end: {
line: 1,
column: 2
}
},
range: [0, 3]
};
var { loc: { start: {line, column}, end: { line, column } }, range } = node;
console.log(end.column)