Skip to main content

커피스크립트 예제 각주 외부 링크 둘러보기 메뉴“GitHub: CoffeeScript”원본 문서커피스크립트GitHub: jashkenas/coffee-scripteheh

JSHintJSLintAjax클라이언트 사이드DHTML자바스크립트 라이브러리자바스크립트 문법겸손한 자바스크립트JSDoc레이아웃 엔진 비교ECMA스크립트 엔진 목록자바스크립트 엔진 목록종속형 시트문서 객체 모델HTMLJSON웹어셈블리액티브 서버 페이지CommonJSJSGINode.jsWakanda더글라스 크락포드브렌던 아이크존 레식Node.jsNPMV8CommonJSLodashUnderscore.jsReact.jsJoyentNodejitsu오픈시프트Linode디지털오션


자바스크립트프로토타입 기반 프로그래밍 언어자바스크립트 프로그래밍 언어 계열자유 소프트웨어 프로젝트MIT 라이선스 소프트웨어동적 프로그래밍 언어


프로그래밍 언어자바스크립트컴파일러깃허브












커피스크립트




위키백과, 우리 모두의 백과사전.






둘러보기로 가기
검색하러 가기


커피스크립트(CoffeeScript)는 프로그래밍 언어로, 자바스크립트의 여러 단점을 해결하기 위해 제안되었다. 커피스크립트는 자신의 언어로 작성된 프로그램을 자바스크립트로 변환할 수 있는(소스 대 소스 컴파일) 컴파일러를 제공하기 때문에 개발할 때 자바스크립트를 쉽게 대체하여 사용할 수 있다.


커피스크립트는 2013년 3월 현재 깃허브에서 11번째로 널리 사용되는 언어이다.[1]



예제


커피스크립트에서는 다음과 같이 함수를 정의할 수 있다.


square = (x) ->
x * x

이 코드는 x를 입력받아 그의 제곱을 반환하는 함수를 square 변수에 저장한다. 이 코드는 다음과 같은 자바스크립트로 변환된다.


var square;
square = function(x)
return x * x;
;


각주




  1. ↑ “GitHub: CoffeeScript”. 2010년 4월 12일에 원본 문서에서 보존된 문서. 2013년 3월 14일에 확인함. 




외부 링크



  • 커피스크립트 - 공식 웹사이트

  • GitHub: jashkenas/coffee-script










원본 주소 "https://ko.wikipedia.org/w/index.php?title=커피스크립트&oldid=23435337"













둘러보기 메뉴

























(RLQ=window.RLQ||[]).push(function()mw.config.set("wgPageParseReport":"limitreport":"cputime":"0.160","walltime":"0.218","ppvisitednodes":"value":379,"limit":1000000,"ppgeneratednodes":"value":0,"limit":1500000,"postexpandincludesize":"value":33643,"limit":2097152,"templateargumentsize":"value":230,"limit":2097152,"expansiondepth":"value":8,"limit":40,"expensivefunctioncount":"value":0,"limit":500,"unstrip-depth":"value":0,"limit":20,"unstrip-size":"value":1919,"limit":5000000,"entityaccesscount":"value":1,"limit":400,"timingprofile":["100.00% 160.620 1 -total"," 50.87% 81.711 1 틀:각주"," 42.72% 68.617 1 틀:웹_인용"," 26.29% 42.233 1 틀:공식_웹사이트"," 18.13% 29.120 2 틀:둘러보기_상자"," 17.06% 27.397 2 틀:일반_기타"," 16.29% 26.170 1 틀:자바스크립트"," 8.74% 14.043 1 틀:URL"," 6.34% 10.187 1 틀:Node.js"," 3.80% 6.104 1 틀:PAGENAMEBASE"],"scribunto":"limitreport-timeusage":"value":"0.051","limit":"10.000","limitreport-memusage":"value":2297887,"limit":52428800,"cachereport":"origin":"mw1328","timestamp":"20190727032737","ttl":2592000,"transientcontent":false););"@context":"https://schema.org","@type":"Article","name":"ucee4ud53cuc2a4ud06cub9bdud2b8","url":"https://ko.wikipedia.org/wiki/%EC%BB%A4%ED%94%BC%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8","sameAs":"http://www.wikidata.org/entity/Q1106819","mainEntity":"http://www.wikidata.org/entity/Q1106819","author":"@type":"Organization","name":"uc704ud0a4ubbf8ub514uc5b4 ud504ub85cuc81dud2b8 uae30uc5ecuc790","publisher":"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":"@type":"ImageObject","url":"https://www.wikimedia.org/static/images/wmf-hor-googpub.png","datePublished":"2013-03-14T13:47:05Z","dateModified":"2019-01-08T02:03:20Z"(RLQ=window.RLQ||[]).push(function()mw.config.set("wgBackendResponseTime":155,"wgHostname":"mw1263"););

Popular posts from this blog

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?