HackerNoon Mobile

Better reading experience on the app
Constants in Swift: A Quick Guideby@ishaanbedi

Constants in Swift: A Quick Guide

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Constants remain constant throughout the flow of the program. We can store any data type as a constant, whether it may be an integer, float, double, string, boolean, etc. Just like a variable, we can also explicitly declare a constant's data type to define what type we want it to store in it. You may try implementing this on your own on a Swift Playground or some other compiler and explore new concepts.

Coin Mentioned

Mention Thumbnail
featured image - Constants in Swift: A Quick Guide
Ishaan Bedi HackerNoon profile picture

@ishaanbedi

Ishaan Bedi


Receive Stories from @ishaanbedi

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!