Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Return statement only returns one block #4

@WouterPennings

Description

@WouterPennings

Variable x should have the value 10

var y = 0

var x = while(y < 10) {
    var y = y + 1
    if( y == 10){
        return y    
    }
}

but x will have no value

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions