JavaScript를 사용하여 JSON 파일 읽기

JavaScript를 사용하여 JSON 파일 읽기

JSON은 다음을 의미합니다. 자바스크립트 객체 표기법 . 텍스트를 사용하여 스크립트 파일의 데이터를 구성하는 방법으로, 데이터를 쉽게 저장하고 공유할 수 있습니다.

독서 JSON 로컬에 저장되어 있든 서버에 저장되어 있든 파일은 웹 애플리케이션에 매우 중요합니다. 이 튜토리얼에서는 웹 개발자에게 정말 도움이 될 수 있는 JavaScript로 JSON 파일을 읽는 세 가지 방법을 다룰 것입니다.

내용의 테이블

메모: JavaScript는 내부적으로 JSON을 지원하므로 JSON을 가져오고 표시하기 위해 추가 모듈이 필요하지 않습니다. JSON 파일을 가져와서 쉽게 직접 사용하여 조작할 수 있습니다.

JavaScript에서 JSON 파일을 읽는 방법은 무엇입니까?

JavaScript에서 JSON 파일을 읽는 세 가지 방법은 다음과 같습니다.

메모: 아래 JSON 파일은 데이터를 가져오는 데 사용됩니다.

샘플.json

{ 'users':[ { 'site':'techcodeview.com', 'user': 'Shobhit' } ] } 

1. fetch() API를 사용하여 JSON 파일 읽기

fetch() 메소드는 JSON 파일(로컬 또는 업로드된 파일)을 읽는 데 사용됩니다. 두 파일 형식 모두에 동일한 구문을 사용합니다.

통사론

fetch('JSONFilePath').then().then().catch(); 

fetch API 메서드를 사용하여 JSON 파일을 읽으려면 다음 단계를 따르세요.

  • JSON 파일을 생성하고 데이터를 추가하세요.
  • 자바스크립트 파일 열기
  • 가져오기 메서드에서 JSON 파일의 경로를 전달합니다.
  • .json() 메서드를 사용하여 JSON 형식으로 데이터를 구문 분석합니다.
  • 콘솔에 콘텐츠를 표시합니다.

JavaScript에서 JSON 파일을 읽는 예:

아래 코드는 fetch() 메서드를 사용하여 JSON 파일을 읽는 방법을 이해하는 데 도움이 됩니다.

HTML
          JSON 파일 제목 읽기> 헤드> <body>  <h1>techcodeview.comh1> <h3>가져온 데이터를 보려면 콘솔로 이동하세요!! h3> <script>function fetchJSONData() { fetch('./sample.json') .then((res) => { if (!res.ok) { 새로운 오류 발생 (`HTTP 오류! 상태: ${res.status} `); } return res.json(); }) .then((data) => console.log(data)) .catch((error) => console.error('데이터를 가져올 수 없습니다:', 오류));  } fetchJSONData();  스크립트> 본문> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>산출: </strong>  </b>  </p>  <p dir='ltr'> <img src='//techcodeview.com/img/javascript-questions/49/read-json-file-using-javascript.webp' alt='API 가져오기 후 JSON 데이터의 콘솔 보기'> </p>  <h2 id='using-the-require-module-to-read-json-file'>  <b>  <strong>2. Require 모듈을 사용하여 JSON 파일 읽기 </strong>  </b>  </h2> <p dir='ltr'>  <span>모듈 필요 </span>  <span>애플리케이션에 모듈을 포함하는 데 사용됩니다. 웹 애플리케이션에 파일을 포함하는 데 사용할 수 있습니다. </span> </p>  <h3> <span>통사론: </span> </h3> <pre>require(JSONFilePath); </pre> <p dir='ltr'> <span>JavaScript에서 필수 모듈을 사용하여 JSON 파일을 읽으려면 다음 단계를 따르세요. </span> </p>  <ul> <li value='1'> <span>이전 접근 방식에 지정된 대로 JSON 파일을 만듭니다. </span> </li> <li value='2'> <span>script.js를 생성하고 노드의 필수 메소드를 사용하여 JSON 파일을 가져옵니다. </span> </li> <li value='3'> <span>콘솔에 데이터 인쇄 </span> </li> </ul> <p dir='ltr'>  <b>  <strong>메모: </strong>  </b>  <span>브라우저에서 프로그램을 실행하는 대신 Node.js를 사용하여 콘솔에서 프로그램을 실행하겠습니다. Node 버전이 17.0 이상인지 확인하세요. </span> </p>  <h3>  <b>  <strong>예 </strong>  </b>  </h3> <p dir='ltr'> <span>아래 코드를 스크립트 파일(노드가 설치되어 있어야 함)에 직접 붙여넣어 JSON 데이터를 실행하고 가져올 수 있습니다. </span> </p>자바스크립트 <code>  <pre>const sample = require('./sample.json'); console.log(sample); </pre>  </code>  <p dir='ltr'>  <b>  <strong>산출: </strong>  </b>  </p>  <pre>{ users: [ { site: 'GeeksForGeeks', user: 'Shobhit' } ] } </pre> <h2 id='by-importing-the-module-to-read-json-file'>  <b>  <strong>3. 모듈을 가져와서 JSON 파일을 읽습니다. </strong>  </b>  </h2> <p dir='ltr'> <span>그만큼 </span>  <span>수입 명세서 </span>  <span>JSON 파일 요소를 JavaScript의 변수로 가져오고 저장하는 데 사용할 수 있습니다. </span> </p>  <h3> <span>통사론: </span> </h3> <pre>import nameOfVariable from 'JSONFilePath' assert {type: 'json'}; </pre> <ul> <li value='1'> <span>이전 예제에 설명된 대로 JSON 파일을 만듭니다. </span> </li> <li value='2'> <span>script.js 파일을 생성하고 JSON 파일을 가져옵니다. </span> </li> </ul> <h3>  <b>  <strong>JavaScript에서 JSON 파일을 읽는 예: </strong>  </b>  </h3> <p dir='ltr'> <span>아래 코드는 import 문을 사용하여 JSON 파일을 가져와서 읽습니다. </span> </p>HTML <code>  <pre>   <html lang='en'>  <head>  <meta charset='UTF-8'>  <meta name='viewport' content= 'width=device-width, initial-scale=1.0'>  <title>JSON 파일 제목 읽기> 헤드> <body>  <h1>techcodeview.comh1> <h3>가져온 데이터를 보려면 콘솔로 이동하세요!! h3> <script type='module' src='./script.js'>스크립트> 본문> html> </pre>  </code>자바스크립트 <code>  <pre>// script.js import user from './sample.json' assert { type: 'json' }; console.log(user) </pre>  </code>  <p dir='ltr'>  <b>  <strong>산출: </strong>  </b>  </p>  <p dir='ltr'> <img src='//techcodeview.com/img/javascript-questions/49/read-json-file-using-javascript.webp' alt='가져오기 모듈을 사용한 JSON 데이터의 콘솔 보기'> </p>  <h2 id='conclusion'> <span>결론 </span> </h2> <p dir='ltr'> <span>JSON 파일은 사용자 데이터, 구성 데이터, 정적 데이터 및 기타 중요한 정보를 저장하는 데 사용되므로 JavaScript에서 JSON 파일을 읽는 것은 웹 개발자에게 매우 중요한 작업입니다. </span> </p>  <p dir='ltr'> <span>이 가이드에서는 JavaScript로 JSON 파일을 읽는 세 가지 방법을 예제와 함께 설명했습니다. 이러한 기술을 이해함으로써 개발자는 JSON 파일 관련 작업을 자신있게 처리하여 보다 원활한 개발 프로세스와 향상된 사용자 경험을 보장할 수 있습니다. </span> </p>  <br>  <br>
                     </div>

                     <!-- Article Footer with Prominent Share Buttons -->
                     <div class="px-6 md:px-8 py-8 bg-slate-50 dark:bg-slate-900/50 border-t border-slate-200 dark:border-slate-700/50">
                          <div class="flex flex-col sm:flex-row items-center justify-between gap-6">
                              <h4 class="text-base font-bold text-slate-700 dark:text-slate-300 uppercase tracking-wide flex items-center gap-2">
                                 <i class="fa fa-share-alt text-tech-500"> </i>
                                공유하다                              </h4>
                             
                              <div class="flex flex-wrap justify-center gap-3">
                                 <!-- Twitter -->
                                 <a href="https://twitter.com/intent/tweet?text=JavaScript를 사용하여 JSON 파일 읽기&url=https://www.techcodeview.com/ko/read-json-file-using-javascript" 
                                   target="_blank" rel="noopener noreferrer" 
                                   class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#1DA1F2]/10 text-[#1DA1F2] hover:bg-[#1DA1F2] hover:text-white transition-all duration-300 font-bold text-sm">
                                     <i class="fa fa-twitter text-lg"> </i>
                                     <span class="hidden sm:inline">Twitter </span>
                                 </a>

                                 <!-- Facebook -->
                                 <a href="https://www.facebook.com/sharer/sharer.php?u=https://www.techcodeview.com/ko/read-json-file-using-javascript" 
                                   target="_blank" rel="noopener noreferrer"
                                   class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#4267B2]/10 text-[#4267B2] hover:bg-[#4267B2] hover:text-white transition-all duration-300 font-bold text-sm">
                                     <i class="fa fa-facebook text-lg"> </i>
                                     <span class="hidden sm:inline">Facebook </span>
                                 </a>
                                
                                 <!-- LinkedIn -->
                                 <a href="https://www.linkedin.com/shareArticle?mini=true&url=https://www.techcodeview.com/ko/read-json-file-using-javascript&title=JavaScript를 사용하여 JSON 파일 읽기" 
                                   target="_blank" rel="noopener noreferrer"
                                   class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#0077b5]/10 text-[#0077b5] hover:bg-[#0077b5] hover:text-white transition-all duration-300 font-bold text-sm">
                                     <i class="fa fa-linkedin text-lg"> </i>
                                     <span class="hidden sm:inline">LinkedIn </span>
                                 </a>
                              </div>
                          </div>
                     </div>
                </article>

                <!-- Comments Placeholder / Random Articles -->
                <div class="mt-8 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl p-6 md:p-8 shadow-sm">
                     <h3 class="text-xl font-bold text-slate-900 dark:text-white mb-6 uppercase tracking-wide border-b border-slate-200 dark:border-slate-700 pb-2">
                        마음에 드실지도 몰라요                     </h3>
                     <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                         <div class="group">
                              <a href="/ko/roman-numerals-1-100" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3">
                                 <img loading="lazy" src="https://techcodeview.com/img/maths/75/roman-numerals-1-100.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="로마 숫자 1부터 100까지" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                              </a>
                              <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors">
                                 <a href="/ko/roman-numerals-1-100">로마 숫자 1부터 100까지 </a>
                              </h4>
                         </div> <div class="group">
                              <a href="/ko/v-model" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3">
                                 <img loading="lazy" src="https://techcodeview.com/img/software-engineering/74/v-model.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="V-모델" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                              </a>
                              <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors">
                                 <a href="/ko/v-model">V-모델 </a>
                              </h4>
                         </div>
                     </div>
                </div>
             </div>

             <!-- SECONDARY COLUMN (SIDEBAR) -->
             <!-- Aside Column -->
 <div class="lg:col-span-4 space-y-8">
	
	 <!-- Best Articles Widget -->
	 <div class="rounded-xl bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 p-6 shadow-sm">
		 <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
			 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide flex items-center">
                 <span class="mr-2 h-2 w-2 rounded-full bg-tech-500"> </span>
                인기 기사             </h2>
		 </div>
		
		 <!-- Owl Carousel Preserved Container -->
		 <div id="owl-carousel-3" class="owl-carousel owl-theme center-owl-nav">
			 <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/left-shift-right-shift-operators-c-c">
						 <img src="https://techcodeview.com/img/it-problems-solutions/09/left-shift-right-shift-operators-c-c.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="C/C++의 왼쪽 Shift 및 오른쪽 Shift 연산자" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/left-shift-right-shift-operators-c-c" class="hover:text-tech-500 transition-colors line-clamp-3">C/C++의 왼쪽 Shift 및 오른쪽 Shift 연산자 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/introduction-directed-acyclic-graph">
						 <img src="https://techcodeview.com/img/it-problems-solutions/39/introduction-directed-acyclic-graph.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="방향성 비순환 그래프 소개" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/introduction-directed-acyclic-graph" class="hover:text-tech-500 transition-colors line-clamp-3">방향성 비순환 그래프 소개 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/linux-mail-command">
						 <img src="https://techcodeview.com/img/linux-tutorial/07/linux-mail-command.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Linux 메일 명령" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/linux-mail-command" class="hover:text-tech-500 transition-colors line-clamp-3">Linux 메일 명령 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/constraints-sql">
						 <img src="https://techcodeview.com/img/sql-tutorial/65/constraints-sql.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="SQL의 제약조건" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/constraints-sql" class="hover:text-tech-500 transition-colors line-clamp-3">SQL의 제약조건 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/use-jsonify-instead-json">
						 <img src="https://techcodeview.com/img/json/01/use-jsonify-instead-json.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Flask에서 json.dumps() 대신 jsonify()를 사용하세요." class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/use-jsonify-instead-json" class="hover:text-tech-500 transition-colors line-clamp-3">Flask에서 json.dumps() 대신 jsonify()를 사용하세요. </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/3-key-tips-ace-ap-calculus-bc-free-response-1311180">
						 <img src="https://techcodeview.com/img/blog/04/3-key-tips-ace-ap-calculus-bc-free-response.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="AP Calculus BC Free Response를 잘하기 위한 3가지 주요 팁" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/3-key-tips-ace-ap-calculus-bc-free-response-1311180" class="hover:text-tech-500 transition-colors line-clamp-3">AP Calculus BC Free Response를 잘하기 위한 3가지 주요 팁 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/whats-minimum-sat-score-131860">
						 <img src="https://techcodeview.com/img/blog/84/whats-minimum-sat-score.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="대학의 최소 SAT 점수는 얼마입니까?" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/whats-minimum-sat-score-131860" class="hover:text-tech-500 transition-colors line-clamp-3">대학의 최소 SAT 점수는 얼마입니까? </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/types-exception-java">
						 <img src="https://techcodeview.com/img/java-tutorial/48/types-exception-java.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Java의 예외 유형" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/types-exception-java" class="hover:text-tech-500 transition-colors line-clamp-3">Java의 예외 유형 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/html-heading">
						 <img src="https://techcodeview.com/img/html-tutorial/53/html-heading.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="HTML 제목" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/html-heading" class="hover:text-tech-500 transition-colors line-clamp-3">HTML 제목 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/ko/graph-plotting-python-set-1">
						 <img src="https://techcodeview.com/img/python-matplotlib/61/graph-plotting-python-set-1.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Python의 그래프 플로팅 | 세트 1" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/ko/graph-plotting-python-set-1" class="hover:text-tech-500 transition-colors line-clamp-3">Python의 그래프 플로팅 | 세트 1 </a>
                     </h4>
				 </div>
			 </article>
			 <!-- /ARTICLE -->
		 </div>
		

         <!-- Categories -->
		 <div class="mt-8 mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
			 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">범주 </h2>
		 </div>
		 <div class="flex flex-wrap gap-2">
             <a href="/ko/blog/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                블로그
             </a> <a href="/ko/java-conversion/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                자바 변환
             </a> <a href="/ko/maths/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                수학
             </a> <a href="/ko/java-collections/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                자바 컬렉션
             </a> <a href="/ko/differences/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                차이점
             </a> <a href="/ko/java-string/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                자바 문자열
             </a>
         </div>

         <!-- Interesting Articles Widget -->
		 <div class="mt-8">
			 <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
				 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">재미있는 기사 </h2>
			 </div>
			
			 <div id="owl-carousel-4" class="owl-carousel owl-theme">
				 <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/blog/12/31-literary-devices-you-must-know.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="꼭 알아야 할 31가지 문학적 장치" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ko/blog/">블로그 </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ko/31-literary-devices-you-must-know-131142">꼭 알아야 할 31가지 문학적 장치 </a> </h4>
					 </div>
				 </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/math-concepts/61/square-root-symbol.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="제곱근 기호" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ko/math-concepts/">수학 개념 </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ko/square-root-symbol">제곱근 기호 </a> </h4>
					 </div>
				 </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/picked/06/how-set-git-username.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="GitBash에서 Git 사용자 이름과 비밀번호를 설정하는 방법은 무엇입니까?" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ko/picked/">선택됨 </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ko/how-set-git-username">GitBash에서 Git 사용자 이름과 비밀번호를 설정하는 방법은 무엇입니까? </a> </h4>
					 </div>
				 </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/blog/10/princeton-acceptance-letter.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="프린스턴 입학 허가서: 실제 및 공식" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ko/blog/">블로그 </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ko/princeton-acceptance-letter-1311374">프린스턴 입학 허가서: 실제 및 공식 </a> </h4>
					 </div>
				 </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/blog/00/complete-guide-ap-us-government-frqs.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="AP 미국 정부 FRQ에 대한 전체 가이드" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ko/blog/">블로그 </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ko/complete-guide-ap-us-government-frqs-131242">AP 미국 정부 FRQ에 대한 전체 가이드 </a> </h4>
					 </div>
				 </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/dbms-tutorial/01/what-is-rdbms.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="RDBMS(관계형 데이터베이스 관리 시스템)이란 무엇입니까?" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/ko/dbms-tutorial/">Dbms 튜토리얼 </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/ko/what-is-rdbms">RDBMS(관계형 데이터베이스 관리 시스템)이란 무엇입니까? </a> </h4>
					 </div>
				 </article>
				 <!-- /ARTICLE -->
			 </div>
		 </div>
	 </div>
 </div>
 <!-- /Aside Column -->         </div>
        </div>
     </div>

 <footer class="site-footer">
         <div class="container">
             <span class="footer-links">
                Copyright ©2026 판권 소유 | 
                 <a href="//www.techcodeview.com/ro/">techcodeview.com </a> | 
                 <a href="/disclaimer" rel="nofollow noopener noreferrer" target="_blank">부인 성명 </a> | 
                 <a href="/about-us" rel="nofollow noopener noreferrer" target="_blank">회사 소개 </a> | 
                 <a href="/privacy-policy" rel="nofollow noopener noreferrer" target="_blank">개인 정보 보호 정책 </a> 
             </span>
         </div>
     </footer>
 
     <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/jquery-1.11.3.min.js"> </script>
     <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/bootstrap/js/bootstrap.min.js"> </script>    
     <script type="text/javascript" src="https://techcodeview.com/template/assets/js/main.js"> </script>     
	 <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"> </script>
	 <script>
    !function(){"use strict";let t=document.createElement("button");t.id="toTopBtn",t.innerHTML="↑";let e=`
        #toTopBtn {
            position: fixed; bottom: 25px; right: 25px; z-index: 9999; opacity: 0; visibility: hidden; background-color: #0ea5e9; color: white; border: none; border-radius: 8px; width: 50px; height: 50px; font-size: 24px; cursor: pointer; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        #toTopBtn:hover { background-color: #0284c7; }
    `,i=document.createElement("style");i.type="text/css",i.innerText=e,document.head.appendChild(i),document.body.appendChild(t),window.addEventListener("scroll",()=>{let e=window.scrollY||document.documentElement.scrollTop;e>300?(t.style.opacity="1",t.style.visibility="visible"):(t.style.opacity="0",t.style.visibility="hidden")}),t.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})}();
     </script>
 </body>
 </html>