<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirakabaararagi</author_name>
  <author_url>https://blog.hatena.ne.jp/sirakabaararagi/</author_url>
  <blog_title>ウェブ家の備忘録</blog_title>
  <blog_url>https://sirakabaararagi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>必要あって念のため調べてみました。初歩すぎて載せるのを迷いましたが自分のために一応載せようかと。 同名のユーザー定義関数があれば後述優先。 変数はもちろんその都度更新。 JSに限らずほかの言語でも全く同様です。 体感的に知ってたけれど、実際に見ると恐ろしいですね。大規模プロジェクトやってて変数が被ったら機能が全停止という。コーディング規約の重要性を感じますね。 機能更新目的で意図的にユーザー定義関数かぶらせるのはありかと。例えばJS上でCSSとHTMLを書いて同時更新、みたいな。人にはあまりお勧めしないけれど。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirakabaararagi.hatenablog.com%2Fentry%2F2022%2F03%2F18%2F153218&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/sirakabaararagi/20220318/20220318152056.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-18 15:32:18</published>
  <title>スコープ汚染　同名ユーザー定義関数を宣言したら後述が優先</title>
  <type>rich</type>
  <url>https://sirakabaararagi.hatenablog.com/entry/2022/03/18/153218</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
