Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<canvas id="demo"></canvas>
</body>
</html>
 
var request = new Request('https://httpbin.org/post', {
    method: 'POST', 
    mode: 'cors',
    data: 'The sky is green',
    redirect: 'follow',
    headers: new Headers({
        'Content-Type': 'text/plain'
    })
});
// Now use it!
fetch(request).then(function(resp) {
  console.log('Logging response...')
  console.log(resp);
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers