Jerry-K27

Member

Last active 12 months ago

  1. 12 months ago
    Mon 25 Dec 2017 02:12:53 PM CET
    Jerry-K27 started the conversation Variable not printing in X code Version 9.2.

    Hi

    Greeting
    I'm a new guy to swift. Can anyone tell me what is going on with my code? The (print) function did not print what I have assigned in the variable. Check out image below;

    var str = ("Hello World")
    print("str")

    -image-

    The console suppose to show "hello world" instead of "str\n" right?

    Thank you.

    Regards
    Jerry Tan

  2. Mon 25 Dec 2017 01:47:04 PM CET
    Jerry-K27 joined the forum.