Google News
logo
CoffeeScript - Interview Questions
What is string concatenation in CoffeeScript?
In CoffeeScript, we can easily concatenate two strings by using + operator between the two strings.
 
For Example :
new_string = "Hello how are you "+"Welcome to Free Time Learn".  
console.log new_String  

On compiling the above CoffeeScript code compiler will generate corresponding javascript code as follows :  

// Generated by CoffeeScript 1.10.0  
(function() {  
  var new_string;  
  
  new_string = "Hello how are you " + "Welcome to Interview Questions";  
  
  console.log(new_String);  
  
}).call(this);  
Advertisement