Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <div class="container p-8">
  <div class="card" style="width: 54rem;">
    <div class="card-body">
      <h5 class="card-title">
        演習: 時間を秒数に変換するプログラム
      <hr />
      <p class="card-text">
        <span class="minutes font-weight-bold h5">
        <span class="seconds font-weight-bold h5">
        秒 は
        <span class="result font-weight-bold h5">
        <span class="text-danger ml-4 judge font-weight-bold h5">
      <p class="card-text error text-danger"></p>
      <hr />
      <p class="card-text">
        <li>結果を格納する変数 <code>result</code> を作成し、計算結果を格納しなさい</li>
<!-- 以下、触らない部分 -->
window.addEventListener('error', function(e) {
  $('.error').text("エラー: " + e.message)

<!-- 確認用スクリプト -->
const confirmAnswer = (min, sec, result) => {
  return result === min*60 + sec




                let minutes = 3
let seconds = 2

// !--ここにプログラムを記述 Start--!

// !--ここにプログラムを記述 End--!

// 表示用スクリプト

// 確認用スクリプト
if(confirmAnswer(minutes, seconds, result)){