The logic data type is an improved version of reg data types where continuous assignments, gates and modules can drive it. However, it can use to store variables. But it cannot be driven by multiple drivers while modelling a bidirectional bus.
Test bench writers mostly use these data types without worrying about reg/wire.
Syntax:
logic [7:0] address //shows variable address can have 8 bits of data.