To define const sparejobs
with an array of objects, you can use the following syntax:
index.tsx72 chars7 lines
This creates an array with a single object containing two key-value pairs: title
with a value of "ค่าแรงช่าง"
(a string), and value
with a value of 6599
(a number). The const
keyword ensures that the variable sparejobs
cannot be reassigned to a different value.
gistlibby LogSnag