Skip to content

Instantly share code, notes, and snippets.

@rileyhawk1417
Created October 10, 2020 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rileyhawk1417/5916b0dc1bd55eb7c7de54747bbf072d to your computer and use it in GitHub Desktop.
Save rileyhawk1417/5916b0dc1bd55eb7c7de54747bbf072d to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/vixakof
<!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>
//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