Need help with "saveLocalData" and "readLocalData"

– If I wanted to save the “highscore” and read it later, how would I do that exactly?

-- Use this function to perform your initial setup
function setup()
    print("Hello World!")
    
    -- Parameters
    watch('highscore')
    
    -- Positioning
    x = WIDTH/2
    y = HEIGHT/2
    
    -- Colour value
    c = color(255, 255, 0, 255)

end

-- This function gets called once every frame
function draw()
    -- This sets a dark background color 
    background(40, 40, 50)

    -- This sets the line thickness
    strokeWidth(5)

    -- Do your drawing here
    
    ellipse(x, y, 100)
    fill(c)
    
end

function touched(touch)
    x = touch.x
    y = touch.y
    
    if touch.state == BEGAN then
        highscore = highscore + 1
    end
end

Sorry… I would help if you could put ~~~ on the top and bottom of your code to make it yellow

Like this.

Do that to make it easier to read the code and I will help. Sorry or not being able to help right away.

-- If I wanted to save the "highscore" and read it later, how would I do that exactly?

-- Use this function to perform your initial setup 
function setup()     
    print("Hello World!")          
    -- Parameters     
    highscore = readLocalData("highscore")
    watch('highscore')         
     -- Positioning     
    x = WIDTH/2     
    y = HEIGHT/2          
    -- Colour value    
     c = color(255, 255, 0, 255)

end

-- This function gets called once every frame 
function draw()     
    -- This sets a dark background color     
     background(40, 40, 50)

    -- This sets the line thickness     
    strokeWidth(5)

    -- Do your drawing here          
    ellipse(x, y, 100)     
    fill(c)     
     end

function touched(touch)     
x = touch.x    
 y = touch.y          
if touch.state == BEGAN then         
highscore = highscore + 1     
saveLocalData("highscore",highscore)
end 
end

I didn’t know you could do that XD

-- Use this function to perform your initial setup
function setup()
    print("Hello World!")
    
    -- Parameters
    watch('highscore')
    
    -- Positioning
    x = WIDTH/2
    y = HEIGHT/2
    
    -- Colour value
    c = color(255, 255, 0, 255)
end

-- This function gets called once every frame
function draw()
    -- This sets a dark background color 
    background(40, 40, 50)

    -- This sets the line thickness
    strokeWidth(5)

    -- Do your drawing here
    
    ellipse(x, y, 100)
    fill(c)
    
end

function touched(touch)
    x = touch.x
    y = touch.y
    
    if touch.state == BEGAN then
    highscore = highscore + 1
    end
end

The statements you need are in the one I pasted in.

Thanks for the help! I really appreciate it! ^^