Constants in Swift: A Quick Guideby@ishaanbedi
1,542 reads
1,542 reads

Constants in Swift: A Quick Guide

by Ishaan Bedi3mFebruary 5th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Ishaan Bedi

Ishaan Bedi

@ishaanbedi

i hack shit together

About @ishaanbedi
LEARN MORE ABOUT @ISHAANBEDI'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Ishaan Bedi HackerNoon profile picture
Ishaan Bedi@ishaanbedi
i hack shit together

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
L O A D I N G
. . . comments & more!