Javascript Tutorial - Using the prompt() and Number() functions

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

An easier way to add variables correctly is add a "+" in front of the variables
Example:

var firstNumber = 5;
var secondNumber = 5;

var sum = +firstNumber + +secondNumber;

//sum is now equal to 10

elijahbentley
Автор

after facing many difficulty finally your number() solve the problem..
thanks a lot..

fahimahmed
Автор

Number() solved my problem, thank you for this video!

forric
Автор

Excellent tutorial👍 Thank you very much!

mingyanvat
Автор

Thanku brother that problem was became a headache for some days👍👍👍

adityashinde
Автор

thanks bro is video is useful for me thank u so much

UmarKhan-pxep
Автор

Thanks a lot for this video
I was stuck!!

mrigankabaruah
Автор

Number() solved my problem.
ThanX bro.

choosebest
Автор

Thank you for the video! It helped me to solve my problem!

ivetastaune
Автор

Tnxx, but I've got a question
What is the meaning of alert

Miracleheliaa
Автор

thanks for your video, you provide an easy way to learn, however please i want to set a factorial function like 5!=5*4*3*2*1, i found on stackoverflow  many functions, but are really difficult to understand, would you like please to give us a simple solution regarding factorial please, and thank you by the way

hkm
Автор

Hi can u help me ..I want to create an authentication prompt..in that prompt browser and tab will not close until type correct password and user name..plz help me

Divinetalkwithbhaktvishakha
Автор

I'm from 2021, I'm in future 😂😂

ElexissCo
Автор

tks for the video! One small question, I have 4 prompts with 4 questions and I want browser shows the answers after each questions. continously, at the end I have 4 answers' shown on browser. How can I do that!?

trioi
Автор

Im new to javascript. I have to use prompt to ask a series of 10 yes or no questions. Each question is 5 points. How do I add them up? The user will input 'yes' meaning 5 points and 'no' being 0 points. How do I go about that? How would I make the word 'yes' translate into 5 points in the code and then add up all the answers of the 10 questions?

PalMusicChannel
welcome to shbcf.ru