Created
October 10, 2020 21:18
-
-
Save rileyhawk1417/5916b0dc1bd55eb7c7de54747bbf072d to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/vixakof
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
//number representation | |
"use strict"; | |
console.log(typeof 10); | |
//built in map functions or objects | |
console.log(Math.PI); | |
//convert something from string into number | |
console.log(parseInt("10") + 213); | |
//other option | |
console.log(parseInt("10", 10)); | |
//checks if value is number or not | |
console.log(isNaN("hello")); | |
//converts strings to numbers | |
console.log(+"10"); | |
//strings | |
//sequences of unicode characters | |
console.log('Hello'); | |
//check length of characters | |
console.log('wassup nigga'.length); | |
//gets character at specific position | |
console.log('Sean'.charAt(0)); | |
//combining strings | |
console.log('Hi' + ' ' + 'Sean' + '!'); | |
console.log("convert me to uppercase".toUpperCase()); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">//number representation | |
console.log(typeof 10); | |
//built in map functions or objects | |
console.log(Math.PI); | |
//convert something from string into number | |
console.log(parseInt("10")+213); | |
//other option | |
console.log(parseInt("10", 10)); | |
//checks if value is number or not | |
console.log(isNaN("hello")); | |
//converts strings to numbers | |
console.log(+"10"); | |
//strings | |
//sequences of unicode characters | |
console.log('Hello'); | |
//check length of characters | |
console.log('wassup nigga'.length); | |
//gets character at specific position | |
console.log('Sean'.charAt(0)); | |
//combining strings | |
console.log('Hi' + ' ' + 'Sean' + '!'); | |
console.log("convert me to uppercase".toUpperCase());</script></body> | |
</html> |
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
//number representation | |
"use strict"; | |
console.log(typeof 10); | |
//built in map functions or objects | |
console.log(Math.PI); | |
//convert something from string into number | |
console.log(parseInt("10") + 213); | |
//other option | |
console.log(parseInt("10", 10)); | |
//checks if value is number or not | |
console.log(isNaN("hello")); | |
//converts strings to numbers | |
console.log(+"10"); | |
//strings | |
//sequences of unicode characters | |
console.log('Hello'); | |
//check length of characters | |
console.log('wassup nigga'.length); | |
//gets character at specific position | |
console.log('Sean'.charAt(0)); | |
//combining strings | |
console.log('Hi' + ' ' + 'Sean' + '!'); | |
console.log("convert me to uppercase".toUpperCase()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment