- CSS stands for Cascading Style Sheet.
- Styles define how to display HTML elements
- Styles were added to HTML 4.0 to solve a problem
- External Style Sheets can save a lot of work
- External Style Sheets are stored in CSS files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var text = "Gist is a simple way to share snippets and pastes with others.", | |
textLength = text.length, | |
lastItem = textLength - 1, | |
textToArray = text.split(""); | |
for(var i=0; i<textLength/2; i++) { | |
textToArray[i] = textToArray.splice(lastItem-i, 1, textToArray[i])[0]; | |
} | |
console.log(textToArray.join("")); |