Структуры (записи)

//using object type
let boldLine = {
    'lineWidth'function () {
        return 10
    }
}
Object.freeze(boldLine)

let lineWidth = boldLine.lineWidth()
//lineWidth is 10

console.log(`lineWidth is ${lineWidth}`)