search

Home  >  Q&A  >  body text

How to create a variable with a fixed data type that can be input by yourself

var a=prompt() What if the value we need to input must be a number

不良少年不良少年1255 days ago1491

reply all(1)I'll reply

  • 猪老湿

    猪老湿2021-08-09 08:56:16

    Convert the input numeric string using Nubmer

    reply
    0
  • Cancelreply