Not null
  • 홈
  • IT정보
  • C
  • Assemble
  • Python
  • System programing
  • Window
  • Linux
  • System
  • Web
  • Network
  • Forensic
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • All (102)
      • network (14)
      • ARM (2)
      • Programing (41)
        • C (3)
        • Assemble (0)
        • Python (8)
        • JavaScript (1)
        • Systemprograming (0)
        • 자료구조, Algorithm (20)
        • Web (4)
        • Git (2)
        • DataBase (1)
        • 운영, 배포, 관리 (2)
      • OS (4)
        • Window (0)
        • Linux (1)
        • theory (3)
      • etc, (3)
      • Hacking (18)
        • System technique (3)
        • Web technique (6)
        • Reversing (9)
      • wargame (11)
      • project (5)
        • android (2)
        • Automated vulnerability (0)
        • Vulnerability analysis (1)
        • Malware Analysis (0)
        • Code Virtualized (1)
      • school.study (1)
  • 홈
  • 태그
  • 방명록
Programing/JavaScript

js(Java Script) 화살표 함수 (arrow function)

JS에서는 화살표 함수라는 것이 있다. C 관련 언어, python 만 사용해왔던 나로써는 아주 신기한 문법이었는데 간략하게 말하자면 js의 화살표 함수는 python의 lambda함수라고 보면 된다. (함수의 선언을 더욱 간결하게 나타내는 표현 방식) Python에서 lambda 식을 살펴보면 1 2 3 4 5 6 7 8 9 def add(x, y): return x+y addLambda = lambda x, y: x + y print(add(1,2)) print(addLambda(1,2)) // 결과 값 $ python .\add.py 3 3 cs 이런식으로 표현이 가능하다. JS에서의 화살표 함수는 이렇게 사용가능하다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 let a..

2020. 10. 12. 14:34
  • «
  • 1
  • »

공지사항

전체 카테고리

  • All (102)
    • network (14)
    • ARM (2)
    • Programing (41)
      • C (3)
      • Assemble (0)
      • Python (8)
      • JavaScript (1)
      • Systemprograming (0)
      • 자료구조, Algorithm (20)
      • Web (4)
      • Git (2)
      • DataBase (1)
      • 운영, 배포, 관리 (2)
    • OS (4)
      • Window (0)
      • Linux (1)
      • theory (3)
    • etc, (3)
    • Hacking (18)
      • System technique (3)
      • Web technique (6)
      • Reversing (9)
    • wargame (11)
    • project (5)
      • android (2)
      • Automated vulnerability (0)
      • Vulnerability analysis (1)
      • Malware Analysis (0)
      • Code Virtualized (1)
    • school.study (1)
애드센스 광고 영역

블로그 인기글

Powered by Privatenote Copyright © Not null All rights reserved. TistoryWhaleSkin3.4

티스토리툴바