Search Header Logo

Inputs & Outputs JS

Authored by Allan Ruiz

Computers

10th Grade

Used 2+ times

Inputs & Outputs JS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo insertamos una etiqueta en HTML?

<label for="num1">Número 1: </label>

<input type="number" id="num1"/>

<button onclick="sNum()">Sumar</button>

<script src="script.js"></script>

<p id="sum">Resultado: 0</p>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo insertamos una caja de texto en HTML?

<label for="num1">Número 1: </label>

<input type="number" id="num1"/>

<button onclick="sNum()">Sumar</button>

<script src="script.js"></script>

<p id="sum">Resultado: 0</p>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo vinculamos JS en HTML?

<label for="num1">Número 1: </label>

<input type="number" id="num1"/>

<button onclick="sNum()">Sumar</button>

<script src="script.js"></script>

<p id="sum">Resultado: 0</p>

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Defina una función con el nombre 'getPrice', solo abra y cierre llaves. La función no tiene contenido.

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Obtenga el valor de un input de tipo texto llamado 'name' y asígnelo en una variable con el mismo nombre (debe declararla).

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Obtenga el valor de un input de tipo number llamado 'days' y asígnelo en una variable con el mismo nombre (debe declararla).

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Despliege en un id llamado 'result' mediante String Interpolation el texto "Resultado: " y la variable 'total'.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?