<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>un_fantasma</author_name>
  <author_url>https://blog.hatena.ne.jp/un_fantasma/</author_url>
  <blog_title>幽霊がプログラミングを一から勉強するブログ</blog_title>
  <blog_url>https://un-fantasma.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>javascript</anon>
  </categories>
  <description>関数の中で、自分自身（その関数）を呼び出すことを「再帰呼び出し」と呼ぶ。 以下は再帰呼び出しを利用して階乗を計算するプログラム。 function factorial(n){ if (n&lt;0){ throw new Error('0以上の値を指定してください:'); }else if(n==0){ return 1; }else{ return factorial(n-1)*n; } } alert(factorial(5)); JavaScriptでは、Argumentsオブジェクトの、calleeプロパティに関数自身への参照が格納されている。 calleeプロパティ使用することで、再帰呼び…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fun-fantasma.hatenadiary.org%2Fentry%2F20090504%2F1241444519&quot; title=&quot;関数の再帰呼び出し - 幽霊がプログラミングを一から勉強するブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-05-04 22:41:59</published>
  <title>関数の再帰呼び出し</title>
  <type>rich</type>
  <url>https://un-fantasma.hatenadiary.org/entry/20090504/1241444519</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
