m-shinkawa
6/7/2018 - 5:24 AM

js_cc_05_func

js_cc_05_func

    function output_hello(){
      document.write('<p>output_hello関数: hello</p>');
    }
    function output_hello_name(name){
      document.write('<p>output_hello_name関数: hello ' + name + '</p>');
    }
    function make_hello_name(name){
      var str = '<p>make_hello_name関数: hello ' + name + '</p>';
      return str;
    }
    // 関数実行
    output_hello();
    output_hello_name('山田');
    var hello_name = make_hello_name('鈴木');
    document.write(hello_name);