All Product ->
Home
Part 1 - Working With Data
1 - Hello World
2 - Booleans
3 - Numbers And Strings

Numbers And Strings

In the last exercise we created a boolean, we will now use numbers and strings in FTD.

We have two types, integer and decimal for dealing with numbers in FTD. Integers are signed. integers and decimals are quite similar to booleans, we have the -- integer foo: 10 syntax to define them.

Strings in FTD do not use quotes, so a string is defined like -- string name: amitu. Also you can define multi-line string like this:

multi-line string in ftd
-- string about-this-workshop:

FTD language is a possible replacement for JavaScript/React to build
web front-ends. In this workshop you will learn the basics of FTD and
build a web app that talks to existing web services. We will build an
application for managing to-do lists from scratch.

Basic knowledge of HTTP API is needed, but no prior knowledge of
front-end is required.

The workshop is taught by the creators of FTD, and you will learn
about the motivation and design decisions that shaped FTD as well.

In this hands-on workshop we will go through a series of exercises in
stages and write code to get the application working. Participants are
required to have a decent computer, but there is no need to install any
software before hand (other than your favorite editor).
This makes FTD quite suitable for authoring content.
Done
Task: Fix FTD files
Go through numbers.ftd and strings.ftd as per instructions given in the file.

You Are Done

You have learnt basics of numbers and strings. Lets move on to records now or go back to the workshop page.
Need Help?

Please join our Discord to ask any questions related to this workshop!

Or just meet the others who are learning FTD like you :-)

ℹ️
Github Repo
The code for this workshop can be found on Github: ftd-lang/ftd-workshop.
Join The Next Session
The next remote workshop would be happening on 4th Nov 2022. Learn more here.