Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
              
            
!

CSS

              
                
              
            
!

JS

              
                /**
* Template Literal is introduced in ES6
* It is a new way to create a string. 
* It allow us more control over dynamic strings (Interpolate and expressions) in our programs
*/

//Basic Template of single line, just a backticks instead of single or double
const lastName = `Thomas`

//Multiple line (Make your space as ur need)
const fullName = `Thomas\n \ 
Muller`
console.log("MultiLine Print of FullName:", fullName)

//Interpolate variables and expressions using the ${...} syntax:

//Interpolate
const firstName = `Alice`
const daughtersName = `I am ${firstName + lastName} 
   Javascript to find Max value: ${Math.max(1, 2, 10, 25, 18)}` 
console.log("Interpolation Prints the Daughter's FullName:", daughtersName)

//Expression
const expValue = `Sum Value = ${1+2+3}`
console.log("Expression Print of :", expValue)

//Template Tag
const templateTag = (args, ...dynamicValues) => {
  let arg0 = args[0]; // "I am "
  let arg1 = args[1]; // " "
  let arg2 = args[2]; // " working as "
  const[name, surName, role] = [...dynamicValues]
  return `${arg0} ${name} ${surName} ${arg2} ${role}`
}

//calling
var profession = `Application Developer`
var profile = templateTag`I am ${firstName} ${lastName} working as ${profession}`
console.log("The Profile Output is: ", profile)

              
            
!
999px

Console