Use the
command ‘workspace()’ to reset the session. Once you reset the session, all the
variables are cleared.
julia> name="Krishna"; julia> age=26; julia> name "Krishna" julia> age 26 julia> workspace() julia> name ERROR: UndefVarError: name not defined julia> age ERROR: UndefVarError: age not defined
Observe
above snippet, when I tried to access the variables name, age after calling
workspace() throws UndefVarError.
No comments:
Post a Comment