Page 57 - Nodejs 교과서 개정2판
P. 57

var	num1	=	1;
           var	num2	=	2;
           var	result	=	3;
           var	string1	=	num1	+	'	더하기	'	+	num2	+	'는	\''	+	result	+	'\'';
           console.log(string1);	//	1	더하기	2는	'3'




         ޙ੗ৌ string1਷ ڸযॳӝ৬ ߸ࣻ  ؊ೞӝ ӝഐ ٸޙী оةࢿ੉ જ૑ ঋणפ׮  ژೠ  ੘਷ٮ১಴ܳ ੉झா੉
         ೐ FTDBQF ೞוۄ ௏٘о ૑੷࠙೤פ׮  &4    ࠗఠח ׮਺җ э੉ ࢎਊೡ ࣻ ੓णפ׮




           const	num3	=	1;
           const	num4	=	2;
           const	result2	=	3;
           const	string2	=	`${num3}	더하기	${num4}는	'${result2}'`;
           console.log(string2);	//	1	더하기	2는	'3'




         ഻ঁ ӭՔ೧઎णפ׮  ${변수} ഋधਵ۽ ߸ࣻܳ ؊ೞӝ ӝഐ হ੉ ޙ੗ৌী ֍ਸ ࣻ ੓णפ׮  ӝઓ ٮ১಴ ؀न
         ߔ౮ਸ ࢎਊೞ޲۽ ௾ٮ১಴ա ੘਷ٮ১಴৬ ೣԋ ࢎਊೡ ࣻب ੓णפ׮


          
          
               ё୓ ܻఠۡ
         ё୓ ܻఠۡী ಞܻೠ ӝמٜ੉ ୶оغ঻णפ׮


         ׮਺ ௏٘ח oldObject ё୓ী ز੸ਵ۽ ࣘࢿਸ ୶оೞҊ ੓णפ׮




           var	sayNode	=	function()	{
           		console.log('Node');
           };
           var	es	=	'ES';
           var	oldObject	=	{
           		sayJS:	function()	{
           				console.log('JS');
           		},
           		sayNode:	sayNode,
           };
           oldObject[es	+	6]	=	'Fantastic';
           oldObject.sayNode();	//	Node
           oldObject.sayJS();	//	JS
           console.log(oldObject.ES6);	//	Fantastic
   52   53   54   55   56   57   58   59   60   61   62