スマホHack!

IOS の単純な関数の構文

スマホ関連の海外ニュースです。

正しい軌道に乗っているが、事があります。 最初、挑戦お聞きするいないと呼ばれる 1 つの挨拶をした定数を宣言します。だから、削除する必要があります。あなたは定数を宣言しなければならなかったために持っていた場合、ここで何かに触れるにだけ、文字列「こんにちは」の値を入れてほしい。右現在、定数を保持している別の変数ですか。指定されました。 今、印刷メソッドに ‘imaginary’ 変数を渡していることを除いて、関数の構文が正しい。文字列「こんにちは」で渡す必要があります。 それ以外は、それは良い探しています。私は、しかし移動する前に関数と型を確認をお勧めします。これらの (および他) のかなり強い理解に進む前に必要があります。時々、私はビデオを数回する必要私は完全に概念を把握していることを確認します。
続きを読む…

IOS simple function syntax

You’re on the right track, but there are things. First off, the challenge didn’t ask you to declare a constant, which you have made one called greeting. So, that will need to be deleted. Just to touch on something here, though, if you were to have to had to declare a constant, you’d want to put the string “Hello” as its value. Right now, the constant is holding another variable? that is named . Now, your syntax for the function is correct, except you are passing in that ‘imaginary’ variable into the print method. You’ll need to pass in the String “Hello”. Other than that, it’s looking good.
Read more…

facebooktwittergoogle_plusredditpinterestlinkedinmail

Comments are closed.