I guess you run the application in a browser. Storage is native functionality so it works only on the device. All native plugin works only on the device.
You need to test for null value, meaning the value is not stored. If that is not what you expect, then there is something else going on. Including the storage being cleared after you close the browser and/or reload the app. Then you need to set the storage engine according to the docs, where still data can be cleared due to the nature of the browser
@flycoders_sourav
I implemented in my application ‘storage’ and all work fine. In browser developers tools check what value is ‘this.user_name’. Maybe you set a value of ‘null’