Can anyone tell me why my alert not working

simo

var tweet = prompt("type your tweet here:");
var tweetcount = tweet.lenght
alert("you have writed " + tweetcount + " character, " + "you have " (180 - tweetcount) + "character");

I'm trying to learn how character count work.

Muhammad Ashraf

as @ivar and @andy mentioned above You are missing a + between "you have " and (180 - tweetcount) and .lenght should be .length

var tweet = prompt("type your tweet here:");
var tweetcount = tweet.length 
alert("you have writed " + tweetcount + " character, " + "you have " + (180 - tweetcount) + " character");

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Can anyone tell me why my Scrollspy is not working?

Can anyone tell me why this is working once?

Can anyone tell me why my last 2 if else statements are not working? Brand new to JavaScript here

Can anyone tell me why my triggers are not working the way I intended them to?

Can anyone tell me why my program is going in infinite Loop?

Can Anyone tell me why my IFile always returns null?

Can anyone tell me, why my js code is not running on jsfiddle?

Can anyone tell me why my filtered array is empty?

Can anyone tell me why my paragraph links are unclickable?

My function is not defined properly, can anyone tell me why?

Can anyone tell me why the result is like this

Can anyone tell me why the value is not returned?

Can anyone tell why my algorithm is wrong?

Can anyone tell me why I am having error in validating my xml against my xsd?

Can anyone tell me why this script.js isn't working?

Can anyone tell me why my calculateCoin function doesnt show up?

Can anyone tell me that why my Calculator name got changed to something chinese?

Can anyone tell me why is my code showing the wrong value of pi?

Can anyone tell me why this where clause is not giving me the result?

Can anyone tell me the Big O time of my sort algorithm?

Can anyone tell me how to increase the snake size in my code?

Can anyone tell me what is wrong in my code

Can anyone tell me what's wrong with my function?

Can anyone tell me why 8>7<6 = true?

RODBC-Can anyone tell me why this doesn't work?

Can anyone tell me why it is showing array is empty?

Can Anyone Tell Me Why This Text Is Not Centering In Android Studio?

Can anyone tell me why this isn't creating a square?

Can anyone tell me why this occur MySQL syntax error?